Re: [Rd] S4 'object is not subsettable' in prototype

2006-08-20 Thread Martin Maechler
> "JMC" == John Chambers <[EMAIL PROTECTED]> > on Sun, 20 Aug 2006 20:20:45 -0400 writes: JMC> When I was introducing the special type for S4 objects, JMC> my first inclination was to have length(x) for those JMC> objects be either NA or an error, along the lines that J

Re: [Rd] How to use R and add-on packages as library in C/C++

2006-08-20 Thread Prof Brian Ripley
On Mon, 21 Aug 2006, Pai-Hsien Hung wrote: > > > Thanks for your reply. > > I have already read the manual again, and use the R.dll (Ch 8.2.2) (Am I > right?). I don't know, as it depends on the (unstated) version of R where in the manual it is. If I were using VC++, I would be more incl

Re: [Rd] How to use R and add-on packages as library in C/C++

2006-08-20 Thread Pai-Hsien Hung
Thanks for your reply. I have already read the manual again, and use the R.dll (Ch 8.2.2) (Am I right?). Running the example in the section is OK. But, when I try to add "do_matprod" function in the same example, I don't know what args should put in. The function description in array.c is

Re: [Rd] S4 'object is not subsettable' in prototype

2006-08-20 Thread John Chambers
When I was introducing the special type for S4 objects, my first inclination was to have length(x) for those objects be either NA or an error, along the lines that intuitively length(x) means "the number of elements in the vector-style object x". However, that change quickly was demonstrated t

Re: [Rd] How to let 'R CMD check' see local libraries

2006-08-20 Thread Kasper Daniel Hansen
On Aug 20, 2006, at 2:03 PM, Sebastian P. Luque wrote: > On Sun, 20 Aug 2006 13:31:41 -0700, > Seth Falcon <[EMAIL PROTECTED]> wrote: > > [...] > >> #!/bin/bash > >> export R_LIBS=/Users/seth/RLIB-2.3 /Users/seth/proj/builds/R-2.3/ >> bin/R "$@" > > > Thank you, good idea. I often forget to use

Re: [Rd] How to let 'R CMD check' see local libraries

2006-08-20 Thread Sebastian P. Luque
On Sun, 20 Aug 2006 13:31:41 -0700, Seth Falcon <[EMAIL PROTECTED]> wrote: [...] > #!/bin/bash > export R_LIBS=/Users/seth/RLIB-2.3 /Users/seth/proj/builds/R-2.3/bin/R "$@" Thank you, good idea. I often forget to use all the shell facilities at hand when building/checking packages. Cheers,

Re: [Rd] How to let 'R CMD check' see local libraries

2006-08-20 Thread Seth Falcon
"Sebastian P. Luque" <[EMAIL PROTECTED]> writes: > Perhaps one way to get around it is to add my local library to > ${R_HOME}/etc/.Renviron, but I'd rather not do that, as I would need to > add it everytime R is upgraded. Any ideas on other solutions would be > appreciated. Thanks. You can expor

[Rd] How to let 'R CMD check' see local libraries

2006-08-20 Thread Sebastian P. Luque
Dear List, Whenever a package requires another one that is available from a local library in my user home directory, 'R CMD check' fails here: * checking package dependencies ... ERROR Packages required but not available: Here, is in a library specified in ~/.Renviron: # local library R_