Re: [Rd] Rmpi and OpenMPI ?

2007-03-29 Thread Ei-ji Nakama
Prof. Nakano(ism Japan) and I wrestled in Rmpi on HP-MPI. Do not know a method to distinguish MPI well? It is an ad-hoc patch at that time as follows. diff -ruN Rmpi.orig/configure Rmpi/configure --- Rmpi.orig/configure 2006-10-12 23:47:03.0 +0900 +++ Rmpi/configure 2007-01-10 21:24:5

Re: [Rd] Developer work cycle

2007-03-29 Thread Mark.Bravington
Couple of quick points: FYI1: the 'mtrace' function in the 'debug' package does let you trace hidden S3 methods (though it lacks the edit= argument). FYI2: In my own alpha-version of 'mvbutils', I am able to do live edits of code in (selected) installed packages, including adding & deleting fun

Re: [Rd] Developer work cycle

2007-03-29 Thread John Chambers
Douglas Bates wrote: > On 3/26/07, "José Luis Aznarte M." <[EMAIL PROTECTED]> wrote: > >> Hi! I've been browsing through the last months' archive and I can't >> find an answer to my question, so here it is (let's hope it's not too >> obvious): >> I'm working on extensions of an R library

Re: [Rd] ansari.test.default: bug in call to uniroot?

2007-03-29 Thread Prof Brian Ripley
Yes, thanks, an obvious typo and I will fix shortly. On Thu, 29 Mar 2007, Stephen Weigand wrote: > A recent message on ansari.test() prompted me to play with the examples. This > doesn't work for me in R version 2.4.1 > > R> ansari.test(rnorm(100), rnorm(100, 0, 2), conf.int = TRUE) > > Error in

[Rd] SPAM items in wishlist category of bugs.r-project.org

2007-03-29 Thread Thomas Friedrichsmeier
Report numbers 9550, 9552, and 9553 are sorted into wishlist (and have been for a while, now), but should go into trashcan, instead. Regards Thomas Friedrichsmeier pgpSWhfzlUISi.pgp Description: PGP signature __ R-devel@r-project.org mailing list http

Re: [Rd] Bridging R to OpenOffice

2007-03-29 Thread Leonard Mada
Hi. Indeed, there is still some time left before the students get allocated. Though I would like to have various issues already analysed before the actual coding starts (me already drawing a tough schedule for the students ;-) ). Some projects are OK when you simply start to write code and ref

Re: [Rd] small bug in ansari.test

2007-03-29 Thread Thomas Friedrichsmeier
On Thursday 29 March 2007 23:05, Peter Dalgaard wrote: > Thomas Friedrichsmeier <[EMAIL PROTECTED]> > > Well, to be precise, the exact p-value really isn't computed in this > > case, but there's still the warning, as though exact=TRUE had been > > specified, which I don't believe is intended. > > Y

[Rd] S4 generic surprise

2007-03-29 Thread Ross Boylan
I discovered the following behavior when source'ing the same file repeatedly as I edited it. My generic stopped acting like a generic. I can't tell from the docs what, if any, behavior is expected in this case. R 2.4.0 > foo <- function(object) 3 > isGeneric("foo") [1] FALSE > setMethod("foo",

Re: [Rd] small bug in ansari.test

2007-03-29 Thread Peter Dalgaard
Thomas Friedrichsmeier <[EMAIL PROTECTED]> writes: > On Thursday 29 March 2007 21:39, Thomas Friedrichsmeier wrote: >> The help page for ansari.test() says (emphasis added): >> >> By default (if exact is not specified), an exact p-value is computed if >> both samples contain less than 50 fini

Re: [Rd] Suggestion for memory optimization and as.double() with friends

2007-03-29 Thread Simon Urbanek
Seth, good point. I think we should be able to do better... On Mar 29, 2007, at 10:57 AM, Seth Falcon wrote: > Prof Brian Ripley <[EMAIL PROTECTED]> writes: >> The usual 'trick' to avoid this copy is >> >> storage.mode(x) <- "double" > > Hmm, this does not appear to avoid the copy for me. Using

[Rd] ansari.test.default: bug in call to uniroot?

2007-03-29 Thread Stephen Weigand
A recent message on ansari.test() prompted me to play with the examples. This doesn't work for me in R version 2.4.1 R> ansari.test(rnorm(100), rnorm(100, 0, 2), conf.int = TRUE) Error in uniroot(ab, srange, tol = 1e-04, zq = qnorm(alpha/2, lower = FALSE)) : object "ab" not found It look

Re: [Rd] Rmpi and OpenMPI ?

2007-03-29 Thread Ross Boylan
On Tue, 2007-03-27 at 21:34 -0500, Dirk Eddelbuettel wrote: > Has anybody tried to use Rmpi with the OpenMPI library instead of LAM/MPI? > > LAM appears to be somewhat hardcoded in the Rmpi setup. Before I start to > experiment with changing this, has anybody else tried Rmpi with non-LAM MPI > imp

[Rd] small bug in ansari.test

2007-03-29 Thread Thomas Friedrichsmeier
The help page for ansari.test() says (emphasis added): By default (if exact is not specified), an exact p-value is computed if both samples contain less than 50 finite values **and there are no ties**. Otherwise, a normal approximation is used. However, this does not appear to be th

Re: [Rd] small bug in ansari.test

2007-03-29 Thread Thomas Friedrichsmeier
On Thursday 29 March 2007 21:39, Thomas Friedrichsmeier wrote: > The help page for ansari.test() says (emphasis added): > > By default (if exact is not specified), an exact p-value is computed if > both samples contain less than 50 finite values **and there are no ties**. > Otherwise, a norma

Re: [Rd] Developer work cycle

2007-03-29 Thread Douglas Bates
On 3/26/07, "José Luis Aznarte M." <[EMAIL PROTECTED]> wrote: > Hi! I've been browsing through the last months' archive and I can't > find an answer to my question, so here it is (let's hope it's not too > obvious): > I'm working on extensions of an R library, and I would be very > surprise

Re: [Rd] zlib+shlib issue with the official EL4 R binary

2007-03-29 Thread Hin-Tak Leung
Prof Brian Ripley wrote: > On Thu, 29 Mar 2007, Hin-Tak Leung wrote: > >> Prof Brian Ripley wrote: >>> On Thu, 29 Mar 2007, Prof Brian Ripley wrote: >>> I presume you are talking about RPMs built with --with-system-zlib? That's not recommended in the R-admin manual, and perhaps you

Re: [Rd] R4.1: seq.POSIXt, tz="AEST" (PR#9572)

2007-03-29 Thread ripley
I think I have managed to track this down, but only by setting a Windows box to that timezone via the control panel. One cannot set a timezone in Windows to one with Australian DST settings, and according to my Linux machine you were in DST on 1968-02-28. That's the problem as we compare 1968

Re: [Rd] zlib+shlib issue with the official EL4 R binary

2007-03-29 Thread Prof Brian Ripley
On Thu, 29 Mar 2007, Hin-Tak Leung wrote: > Prof Brian Ripley wrote: >> On Thu, 29 Mar 2007, Prof Brian Ripley wrote: >> >>> I presume you are talking about RPMs built with --with-system-zlib? >>> >>> That's not recommended in the R-admin manual, and perhaps you can persuade >>> Martyn Plummer n

Re: [Rd] Bridging R to OpenOffice

2007-03-29 Thread Kevin B. Hendricks
Hi, On Mar 29, 2007, at 8:55 AM, Erich Neuwirth wrote: > It is accessible at http://dx.doi.org/10.1007/s00180-007-0023-6 > If you cannot access it, write to me, I will send you a copy. > > Currently, we are working on a cross-platform alternative to using > COM to connect the spread-sheet to R. Th

Re: [Rd] zlib+shlib issue with the official EL4 R binary

2007-03-29 Thread Hin-Tak Leung
Prof Brian Ripley wrote: > On Thu, 29 Mar 2007, Prof Brian Ripley wrote: > >> I presume you are talking about RPMs built with --with-system-zlib? >> >> That's not recommended in the R-admin manual, and perhaps you can >> persuade >> Martyn Plummer not to do it. > > I've checked, and he no longer

Re: [Rd] Suggestion for memory optimization and as.double() with friends

2007-03-29 Thread Seth Falcon
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > The usual 'trick' to avoid this copy is > > storage.mode(x) <- "double" Hmm, this does not appear to avoid the copy for me. Using R 2.5.0 alpha r40916 I get: > x <- 1:10 * 2.3 > names(x)=LETTERS[1:10] > storage.mode(x) [1] "double"

Re: [Rd] zlib+shlib issue with the official EL4 R binary

2007-03-29 Thread Hin-Tak Leung
Prof Brian Ripley wrote: > I presume you are talking about RPMs built with --with-system-zlib? > > That's not recommended in the R-admin manual, and perhaps you can > persuade Martyn Plummer not to do it. Not quite - the problematic option seems to be "--enable-R-shlib" which the official RPM w

Re: [Rd] zlib+shlib issue with the official EL4 R binary

2007-03-29 Thread Prof Brian Ripley
On Thu, 29 Mar 2007, Prof Brian Ripley wrote: > I presume you are talking about RPMs built with --with-system-zlib? > > That's not recommended in the R-admin manual, and perhaps you can persuade > Martyn Plummer not to do it. I've checked, and he no longer does so, sorry. So there is a zlib insi

Re: [Rd] zlib+shlib issue with the official EL4 R binary

2007-03-29 Thread Prof Brian Ripley
I presume you are talking about RPMs built with --with-system-zlib? That's not recommended in the R-admin manual, and perhaps you can persuade Martyn Plummer not to do it. On Thu, 29 Mar 2007, Hin-Tak Leung wrote: > Hi, > > I have got a curious issue with an R package which uses zlib, against >

[Rd] zlib+shlib issue with the official EL4 R binary

2007-03-29 Thread Hin-Tak Leung
Hi, I have got a curious issue with an R package which uses zlib, against the official binary here: http://cran.r-project.org/bin/linux/redhat/el4/i386/R-2.4.1-1.rh4AS.i386.rpm on a Redhat EL4 i686 system. The problem is that at the end of reading a gzip'ed file within my C code, gzgetc() returns

Re: [Rd] Bridging R to OpenOffice

2007-03-29 Thread Erich Neuwirth
Since I implemented the RExcel interface I also would like this discussion to be continued on r-devel or some other list where I can follow it. Let me add some thoughts: As Leonhard Mada suggested, probably the most needed connection between R and a spreadsheet program is a way to transfer datafr

[Rd] Error building R-alpha (from 28-Mar-07, r40918)

2007-03-29 Thread Sean Davis
This could easily be my fault, but I don't see the same issue with r40902, so I am posting here: % uname -a Linux pressa 2.6.18.8-0.1-default #1 SMP Fri Mar 2 13:51:59 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux % gcc -v gcc version 4.1.2 20061115 (prerelease) (SUSE Linux) On a fresh download of R-

[Rd] Index for a package

2007-03-29 Thread Duncan Murdoch
On 3/29/2007 8:09 AM, fabio frascati wrote: > Hi. I am Fabio Frascati and I am from Italy. I have a dubt about R: How can I > have alphabetical index of my package index of functions? Example: > > --A-- > aaa > aaab > > --B-- >

Re: [Rd] Bridging R to OpenOffice

2007-03-29 Thread Barry Rowlingson
Kevin B. Hendricks wrote: > As I remember, I think someone has built an interface from Gnumeric > to R if I am not mistaken. That project if it is still alive might > provide a nice model of how to interface from a spreadsheet to R > without lots of GUI front end stuff being needed. As I r

Re: [Rd] (PR#9578) rbind.data.frame reacts on levels without factor

2007-03-29 Thread prechelt
Brian wrote: > In your data frames, 'y' is a category ... > The behaviour is compatible with S apart from the comment in=20 > the R help=20 > page. That categories are promoted to factors is consistent=20 > with the help for 'category'. I have been around S and R for about 10 years, but had never

Re: [Rd] (PR#9589) 'union' does not handle factors while 'intersect'

2007-03-29 Thread ripley
This is not a bug, nor is the subject line true: both do accept factors but what they do with factors is undocumented. From the help (not 'man') page Performs *set* union, intersection, (asymmetric!) difference, equality and membership on two vectors.

Re: [Rd] (PR#9578) rbind.data.frame reacts on levels without

2007-03-29 Thread ripley
In your data frames, 'y' is a category and the following comment in the code makes clear this is deliberate. if( !is.null(levels(xj)) ) { all.levs[[j]] <- levels(xj) facCol[j] <- TRUE # turn categories into factors

[Rd] 'union' does not handle factors while 'intersect' does (PR#9589)

2007-03-29 Thread prechelt
Full_Name: Lutz Prechelt Version: 2.4.1 OS: Windows XP Submission from: (NULL) (160.45.111.67) 'union' ignores the fact if its arguments are factors while all other set operations (intersect, setdiff, setequal, is.element) treat them sensibly. The manpage does not even mention the term 'factor'.