Hello,
as per title, I am trying to wrap my head around the issue I am experiencing.
I am working on a function out of my 'GmAMisc' package; the function is part of a new version which is currently under construction.
I am testing the new version, and I have hit 'install/reload', and all is ok. But there is a problem with one function: it does not work (i.e., it returns an error) when I try to run it for the first time; but if I copy/paste it in the R console, it works smoothly.
I know that from this description it is not easy to pinpoint the exact cause of the issue; I am just wondering if anyone here have ever experienced anything similar. I am wondering if that could be caused by possible conflict(s) between some functions on which my functions rests, or by conflicting behaviours between my package's dependencies....
What strikes me is the fact that, once the function's code is pasted into R, all works nicely.
Any hint is appreciated.
Best
Gm
as per title, I am trying to wrap my head around the issue I am experiencing.
I am working on a function out of my 'GmAMisc' package; the function is part of a new version which is currently under construction.
I am testing the new version, and I have hit 'install/reload', and all is ok. But there is a problem with one function: it does not work (i.e., it returns an error) when I try to run it for the first time; but if I copy/paste it in the R console, it works smoothly.
I know that from this description it is not easy to pinpoint the exact cause of the issue; I am just wondering if anyone here have ever experienced anything similar. I am wondering if that could be caused by possible conflict(s) between some functions on which my functions rests, or by conflicting behaviours between my package's dependencies....
What strikes me is the fact that, once the function's code is pasted into R, all works nicely.
Any hint is appreciated.
Best
Gm