Thanks.
-Roy
> On Sep 20, 2017, at 9:37 AM, Joshua Ulrich wrote:
>
> On Wed, Sep 20, 2017 at 11:32 AM, Roy Mendelssohn - NOAA Federal
> wrote:
>> Hi All:
>>
>> I have a package whose main function is to download environmental data using
>> a service. I have added some plot routines, As it
On Wed, 2017-09-20 at 09:45 -0500, Dirk Eddelbuettel wrote:
> Thierry,
>
> This has always been a considerable puzzle, and the source of some amusement,
> to me. It is a clear design bug in Rscript because _code that would
> otherwise work_ will not if it happens to rely on library(methods). S4 c
On Wed, Sep 20, 2017 at 11:32 AM, Roy Mendelssohn - NOAA Federal
wrote:
> Hi All:
>
> I have a package whose main function is to download environmental data using
> a service. I have added some plot routines, As it is, my examples of just
> the downloads push the CRAN limits on time, so I wan
Hi All:
I have a package whose main function is to download environmental data using a
service. I have added some plot routines, As it is, my examples of just the
downloads push the CRAN limits on time, so I want the plot examples to use
data that has already been downloaded and stored as pa
Thierry,
This has always been a considerable puzzle, and the source of some amusement,
to me. It is a clear design bug in Rscript because _code that would
otherwise work_ will not if it happens to rely on library(methods). S4 comes
to mind. This has also been answered at least a few times on SO
Dear Joshua,
Thanks for your prompt reply.
I had a look at all dependencies and none of them use loadMethod(). So
the culprit is probably one of their dependencies.
What would be the best way to deal with this? add library(methods) to
the script or import loadMethod() via the NAMESPACE?
Best re
Hi Thierry,
On Wed, Sep 20, 2017 at 7:45 AM, Thierry Onkelinx
wrote:
> Dear all,
>
> Could someone explain this to me? I have a simple script (see below).
> my_function() is an S4 method. The package imports all functions from
> methods that it uses.
>
> When I run the script in a vanilla R sessi
Dear all,
Could someone explain this to me? I have a simple script (see below).
my_function() is an S4 method. The package imports all functions from
methods that it uses.
When I run the script in a vanilla R session it works. When using
Rscript I get the error: Error in loadMethod(function (x, .