Re: [Rd] Problem with S3 to S4 transition

2010-03-16 Thread Martin Morgan
Hi Renard -- On 03/16/2010 05:26 AM, Renard Didier wrote: > Hello to everybody > > I am developing a package using R and have the following problem: > > I used to work in a mixture of S3 and S4 mechanism environment: as a > matter of fact, I used to define my classes (say "DB" for illustration)

Re: [Rd] Problems compiling a simple source package on MacOS X

2010-03-16 Thread Alex Bokov
Simon Urbanek wrote: In addition, please consider looking at R-SIG-Mac where Mac-related discussion takes place and this has been discussed before (stuffing the error in google gives exactly the relevant hit on the list...) Thank you, that was helpful. I'll try upgrading to Xcode 2.5. Ve

[Rd] Problem with S3 to S4 transition

2010-03-16 Thread Renard Didier
Hello to everybody I am developing a package using R and have the following problem: I used to work in a mixture of S3 and S4 mechanism environment: as a matter of fact, I used to define my classes (say "DB" for illustration) using the setClass function (with representation field), and I was u

Re: [Rd] Problems compiling a simple source package on MacOS X

2010-03-16 Thread Simon Urbanek
Alex, On Mar 16, 2010, at 14:19 , Alex Bokov wrote: Hello. I wrote a package (that contains C source) that I've been compiling and running on both Linux and Windows for about a year. However, that same source package fails to compile on MacOS (10.4.11, PowerPC G4, Xcode installed, gcc ver

[Rd] Problems compiling a simple source package on MacOS X

2010-03-16 Thread Alex Bokov
Hello. I wrote a package (that contains C source) that I've been compiling and running on both Linux and Windows for about a year. However, that same source package fails to compile on MacOS (10.4.11, PowerPC G4, Xcode installed, gcc version 4.0.1, make version 3.80, ld version cctools-590.23.

[Rd] mean(trim=, c(NA,...), na.rm=FALSE) does not return NA

2010-03-16 Thread William Dunlap
Both of the following should return NA, but do not in "R version 2.11.0 Under development (unstable) (2010-03-07 r51225)" on 32-bit Windows: > mean(c(1,10,100,NA), trim=.1) Error in sort.int(x, partial = unique(c(lo, hi))) : index 4 outside bounds > mean(c(1,10,100,NA), trim=.26) [1]

Re: [Rd] Strange behavior of assign in a S4 method.

2010-03-16 Thread Christophe Genolini
Dear Wolfgang, Thanks for the showMethod and the link. Perhaps juggling with the 'n' argument of 'parent.frame' could help in hacking something together that 'works' I just change the argument list of foo2 to perfectly match with the definition. but as far as I can see what you want to is an

[Rd] 2.11.0 timing (was translation for R-2.11)

2010-03-16 Thread Prof Brian Ripley
The enquiry below reminds me that we really ought to be setting a schedule for 2.11.0. With Easter now likely to be during the pre-2.11.0 period, we may have (other)availability issues. I've updated the translation templates this morning, so the advice to Detlef was it was OK provided he work

Re: [Rd] Strange behavior of assign in a S4 method.

2010-03-16 Thread Prof Brian Ripley
Where did you get the idea that 'x' comes from the parent frame? There is no guarantee of this, and you are relying on/stumbling over implementation details here. (An extra call is inserted by setMethod() to handle the matching up of argumnets, but that is something which may change, and has