[Rd] Questions about imports to a namespace

2012-07-02 Thread Simon Knapp
Hi, I am a bit unsure about using imports in packages and have a few questions. I'm sure the answer to some of these is 'it depends', but I'm interested in what others think and 'best practices' when this is the case. 1) If I use an import or importFrom declaration in a NAMESPACE, should I also

[Rd] S4 class for chunked data that inherits from numeric- numeric methods won't work

2012-07-02 Thread Elizabeth Sander
Dear R-devel, I've created an S4 class called "range.vec", which is meant to hold a sequence of numbers, like one you would create using seq(). I'm trying to only store a chunk of the sequence at any given time, to save memory. this means that my class has slots for start, end, and step, as well a

Re: [Rd] Dependency problem for "hasArg"

2012-07-02 Thread Martin Morgan
On 07/02/2012 06:23 PM, Charlie Friedemann wrote: The error message you are getting makes it rather clear what the problem is. R is unable to find the function 'hasArg'. As the hasArg function is part of the package 'methods', a solution would be to put require(methods) at the beginning of your

Re: [Rd] Dependency problem for "hasArg"

2012-07-02 Thread Dirk Eddelbuettel
On 2 July 2012 at 12:00, Dirk Eddelbuettel wrote: | | On 2 July 2012 at 09:23, Charlie Friedemann wrote: | | The error message you are getting makes it rather clear what the problem is. | | R is unable to find the function 'hasArg'. As the hasArg function is part | | of the package 'methods',

Re: [Rd] Dependency problem for "hasArg"

2012-07-02 Thread Dirk Eddelbuettel
On 2 July 2012 at 09:23, Charlie Friedemann wrote: | The error message you are getting makes it rather clear what the problem is. | R is unable to find the function 'hasArg'. As the hasArg function is part | of the package 'methods', a solution would be to put require(methods) at the | beginning

Re: [Rd] Dependency problem for "hasArg"

2012-07-02 Thread Charlie Friedemann
The error message you are getting makes it rather clear what the problem is. R is unable to find the function 'hasArg'. As the hasArg function is part of the package 'methods', a solution would be to put require(methods) at the beginning of your script. For whatever reason, loading R via Rscript

[Rd] Dependency problem for "hasArg"

2012-07-02 Thread Mauricio Zambrano-Bigiarini
Dear list, I'm running an R script which first line is: #!/usr/bin/Rscript While running that script from the system console (in Red Hat Enterprise Linux 6) I got the following error: Error in plot2(x = sim, y = obs, plot.type = "single", main = paste("Daily", : could not find function