[Rd] how to contribute to r using c and c++

2009-02-11 Thread Nakul Chaudhari
hello, I would like to contribute to the r project ,but as i have no(or very less) knowledge of statistics(I am a computer science student) am finding it difficlut to do so.My programming expereince includes c and c++.Also i have gone thorugh the basic r Syntax found in the r-intro pdf file.I would

Re: [Rd] RSPython

2009-02-11 Thread Duncan Temple Lang
Hi David. (Sorry about not replying to your earlier mail. I have been rather busy in the last few days.) David Scherrer wrote: Hi all, I try to utilize RSPython to invoke Python from R. For me it works pretty fine for basic applications, but I have 3 problems that may be related. (1) I can

[Rd] RSPython

2009-02-11 Thread David Scherrer
Hi all, I try to utilize RSPython to invoke Python from R. For me it works pretty fine for basic applications, but I have 3 problems that may be related. (1) I can't load other packages but "standard" ones also when I adjust the PythonPath: > importPythonModule('sys', all=T) NULL

Re: [Rd] setClassUnion with numeric; extending class union

2009-02-11 Thread John Chambers
So, I was intrigued and played around a bit more. Still can't get any warnings, but the following may be the issue. One thing NOT currently possible is to have a class that has NULL as its data part, because type NULL is abnormal and can't have attributes. So if you want a class that contain

Re: [Rd] p.adjust; n > length(p) (PR#13519)

2009-02-11 Thread Steven McKinney
Hi Ludo, Issues such as this are best posed as questions to the list before filing a bug report. (False bug reports create extra work for volunteer R-core members.) What is your use case for setting n larger than length(p) (the default)? The documentation does say "n number of comparisons, must

Re: [Rd] setClassUnion with numeric; extending class union

2009-02-11 Thread John Chambers
What warnings? Which part of the following is not what you're looking for? (The usual information is needed, like version of R, reproducible example, etc.) > setClassUnion("numericOrNULL", c("numeric","NULL")) [1] "numericOrNULL" > setClass("foo", representation(x="numericOrNULL")) [1] "foo" >

[Rd] gc(reset=TRUE) reset timing

2009-02-11 Thread Stavros Macrakis
The man page for gc reads: The final two columns show the maximum space used since the last call to 'gc(reset=TRUE)' (or since R started). The word 'last' here is ambiguous: does it include the *current* call to gc? When I first read this, I assumed that it did not; indeed, I only real

[Rd] p.adjust; n > length(p) (PR#13519)

2009-02-11 Thread lpagie
Full_Name: Ludo Pagie Version: 2.8.1 OS: linux Submission from: (NULL) (194.171.7.39) p.adjust in stats seems to have a bug in handling n>length(p) for (at least) the methods 'holm' and 'hochberg'. For method 'holm' the relevant code: i <- 1:n o <- order(p) ro <- order(o)

[Rd] setClassUnion with numeric; extending class union

2009-02-11 Thread Sklyar, Oleg (London)
Dear list: I am looking for a good way to create an S4 class that would extend numeric, but would allow NULL instead of data as well. As far as I can see there is no way at the moment to do that, but please correct me if I am wrong. The best solution I came up with so far was the following (it als