Re: [Rd] bug in by.data.frame, R-2.6.1 (PR#10506)

2007-12-18 Thread ripley
It transpires that package survey relies on the current behaviour (which is not new in 2.6.1: R 2.0.0 did it). The suggested fix is reasonable if 'data' was originally a data frame, but the default method promotes vectors to data frames, and the data frame method used to drop them back to vecto

Re: [Rd] interactive graphics devices

2007-12-18 Thread Prof Brian Ripley
On Tue, 18 Dec 2007, Byron Ellis wrote: > I probably missed this discussion, but why not just ASK the device if > it is interactive? I can easily imagine a case where a device might be > interactive or not depending on how it was started. In fact, I don't > have to imagine a case since the Quartz

Re: [Rd] available.packages() not accurate?

2007-12-18 Thread hadley wickham
> > pkgs <- > > as.data.frame(available.packages(contrib.url("http://cran.r-project.org";))) > > pkgs[c("sn", "GOSim", "GammaTest"), c("Package", "Version")] > Package Version > sn sn 0.4-4 > GOSim GOSim 1.1.2 > NA > > which match CRAN (which doesn't have GammaTest).

Re: [Rd] available.packages() not accurate?

2007-12-18 Thread Deepayan Sarkar
On 12/18/07, hadley wickham <[EMAIL PROTECTED]> wrote: > On 12/18/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > > On 12/18/07, hadley wickham <[EMAIL PROTECTED]> wrote: > > > > pkgs <- > > > > as.data.frame(available.packages(contrib.url("http://cran.r-project.org";))) > > > > pkgs["sn", c("Pac

Re: [Rd] available.packages() not accurate?

2007-12-18 Thread hadley wickham
On 12/18/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > On 12/18/07, hadley wickham <[EMAIL PROTECTED]> wrote: > > > pkgs <- > > > as.data.frame(available.packages(contrib.url("http://cran.r-project.org";))) > > > pkgs["sn", c("Package", "Version")] > > > > But looking at http://cran.r-project.o

Re: [Rd] available.packages() not accurate?

2007-12-18 Thread Deepayan Sarkar
On 12/18/07, hadley wickham <[EMAIL PROTECTED]> wrote: > > pkgs <- > > as.data.frame(available.packages(contrib.url("http://cran.r-project.org";))) > > pkgs["sn", c("Package", "Version")] > > But looking at http://cran.r-project.org/src/contrib/ only sn_0.4-2 is > available. Any ideas? I see 0.4

[Rd] available.packages() not accurate?

2007-12-18 Thread hadley wickham
> pkgs <- > as.data.frame(available.packages(contrib.url("http://cran.r-project.org";))) > pkgs["sn", c("Package", "Version")] But looking at http://cran.r-project.org/src/contrib/ only sn_0.4-2 is available. Any ideas? Thanks, Hadley -- http://had.co.nz/ ___

Re: [Rd] interactive graphics devices

2007-12-18 Thread Deepayan Sarkar
On 12/18/07, Byron Ellis <[EMAIL PROTECTED]> wrote: > I probably missed this discussion, but why not just ASK the device if > it is interactive? That's done if the device is open. deviceIsInteractive() takes away the guessing even when it's not (the use-case is when you type example(something) wit

Re: [Rd] interactive graphics devices

2007-12-18 Thread Byron Ellis
I probably missed this discussion, but why not just ASK the device if it is interactive? I can easily imagine a case where a device might be interactive or not depending on how it was started. In fact, I don't have to imagine a case since the Quartz device in R-devel can have exactly this behavior.

[Rd] interactive graphics devices

2007-12-18 Thread Paul Murrell
Hi For all developers of add-on graphics devices: please note the existence of deviceIsInteractive() for adding your device to the list of devices for which dev.interactive() returns TRUE. (Available since R 2.6.0; thanks to Brian Ripley I think) Paul -- Dr Paul Murrell Department of Statisti

Re: [Rd] Improvement of SignRank functions

2007-12-18 Thread Luke Tierney
On Sat, 15 Dec 2007, Martin Maechler wrote: > Hi Ivo, > >> "IU" == Ivo Ugrina <[EMAIL PROTECTED]> >> on Sat, 15 Dec 2007 14:13:10 +0100 writes: > >IU> Martin Maechler wrote: >>> do you have evidence for your belief? >>> i.e. a set of system.time(.) calls where you see the

Re: [Rd] Fortran 90 and Windows

2007-12-18 Thread Dave Roberts
Thank you kindly Professor Ripley, Peter Dalgaard and Jari Oksanen. Although I had searched for Fortran 90 in various R locations, I hadn't thought to search for Fortran 95, and so hadn't seen Professor Ripley's reply to John Fox. I just joined this list yesterday, and saw the December archive

[Rd] small bug in panel.cor in example for pairs?

2007-12-18 Thread Matthias Kohl
Dear all, in the Example section of pairs there is panel.cor <- function(x, y, digits=2, prefix="", cex.cor) { usr <- par("usr"); on.exit(par(usr)) par(usr = c(0, 1, 0, 1)) r <- abs(cor(x, y)) txt <- format(c(r, 0.123456789), digits=digits)[1] txt <

[Rd] branch cuts of log() and sqrt()

2007-12-18 Thread Robin Hankin
Dear developers Neither Math.Rd nor Log.Rd mention the branch cuts that appear for complex arguments. I think it's important to include such information. Please find following two context diffs for Log.Rd and Math.Rd. [The pedants amongst us will observe that both sqrt() and log() have a branch

Re: [Rd] help files for load and related functions

2007-12-18 Thread Martin Maechler
> "DM" == Duncan Murdoch <[EMAIL PROTECTED]> > on Mon, 17 Dec 2007 09:36:48 -0500 writes: DM> On 12/17/2007 9:06 AM, Oleg Sklyar wrote: >> Dear Patrick, >> >> Firstly, and most importantly, I do not think that your post qualified >> for Rd! Please use the correct

Re: [Rd] Fortran 90 and Windows

2007-12-18 Thread Prof Brian Ripley
On Mon, 17 Dec 2007, Dave Roberts wrote: > I have been revising some FORTRAN 77 routines in R packages I have > previously submitted. Since R is now using gfortan I experimented with > some Fortran 90 code (array intrinsics primarily). So far the code is > still in F77 fixed format, in files suf

Re: [Rd] Fortran 90 and Windows

2007-12-18 Thread Peter Dalgaard
Dave Roberts wrote: > I have been revising some FORTRAN 77 routines in R packages I have > previously submitted. Since R is now using gfortan I experimented with > some Fortran 90 code (array intrinsics primarily). So far the code is > still in F77 fixed format, in files suffixed .f (not .f90)

[Rd] Fortran 90 and Windows

2007-12-18 Thread Dave Roberts
I have been revising some FORTRAN 77 routines in R packages I have previously submitted. Since R is now using gfortan I experimented with some Fortran 90 code (array intrinsics primarily). So far the code is still in F77 fixed format, in files suffixed .f (not .f90), but incorporates some F90