Re: [Rd] rgl update: please test!

2007-03-01 Thread laszlo kajan
Hello Duncan, rgl.snapshot seems ok! I compiled the source as usual: R CMD INSTALL rgl_0.70.564.tar.gz on a Linux hostname 2.6.19-1.2895.fc6 #1 SMP Wed Jan 10 18:50:56 EST 2007 x86_64 x86_64 x86_64 GNU/Linux Fedora Core 6. I tested the rgl.snapshot, and it creates the snapshot png without a hi

Re: [Rd] Same method for more than one class

2007-03-01 Thread Sean Davis
On Thursday 01 March 2007 06:18, Sean Davis wrote: > On Thursday 01 March 2007 05:47, Gregor Gorjanc wrote: > > Hi, > > > > when defining method (I used length bellow just for the simplicity) for > > myClass (S4 class) I use > > > > setMethod(f="length", signature(x="myClass"), > > def=fu

Re: [Rd] Same method for more than one class

2007-03-01 Thread Gregor Gorjanc
Sean Davis wrote: ... > > Could you do: > > catFun <- function(x) { > cat("Works") > } > setMethod(f="length", signature(x="myClass1"),def=catFun) > setMethod(f="length", signature(x="myClass2"),def=catFun) Yep, that is what I wanted. setMethod(f="length", signature(x=c("myClass1", "myClass2"

Re: [Rd] Same method for more than one class

2007-03-01 Thread Sean Davis
On Thursday 01 March 2007 05:47, Gregor Gorjanc wrote: > Hi, > > when defining method (I used length bellow just for the simplicity) for > myClass (S4 class) I use > > setMethod(f="length", signature(x="myClass"), > def=function(x) { > cat("works") > }) > > If I have

[Rd] Same method for more than one class

2007-03-01 Thread Gregor Gorjanc
Hi, when defining method (I used length bellow just for the simplicity) for myClass (S4 class) I use setMethod(f="length", signature(x="myClass"), def=function(x) { cat("works") }) If I have myClass1 and myClass2 and mentioned method, which is not the default one,

[Rd] Registration of native routines

2007-03-01 Thread Gregor Gorjanc
Dear R developers, I am working on registration of native C and FORTRAN routines and have encountered "inconsistencies" about this issue. I am referring to "Registering native routines" section of R-ext manual. *(DL_FUNC), &F77_SUB, &F77_SYMBOL On line 5108 of R-ext.texi the array for method myC