Re: [Rd] newly introduced lattice bug

2006-09-30 Thread Deepayan Sarkar
On 9/30/06, Richard M. Heiberger <[EMAIL PROTECTED]> wrote: > > library(lattice) > > xyplot(rnorm(10) ~ rnorm(10) | factor(1:10), layout=c(2,3)) > > version >_ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status

[Rd] Rcmd install mypkg

2006-09-30 Thread Gabor Grothendieck
I noticed that in "R version 2.4.0 alpha (2006-09-16 r39365)" on Windows XP that I get this error: C:\Rpkgs>Rcmd install mypkg no Perl script 'install' The same command worked with no error in 2.3.1pat. If I capitalize INSTALL it does work; however, this was not necessary previously. Note that

[Rd] newly introduced lattice bug

2006-09-30 Thread Richard M. Heiberger
> library(lattice) > xyplot(rnorm(10) ~ rnorm(10) | factor(1:10), layout=c(2,3)) > version _ platform i386-pc-mingw32 arch i386 os mingw32

Re: [Rd] Strange behaviour of the [[ operator

2006-09-30 Thread Duncan Murdoch
On 9/30/2006 10:39 AM, Martin Maechler wrote: >> "Herve" == Herve Pages <[EMAIL PROTECTED]> >> on Fri, 29 Sep 2006 18:06:41 -0700 writes: > > Herve> Hi, > Herve> This looks like a bug: > hmm, maybe... > or maybe not; I vaguely recall that this is documented somewhere... > >

Re: [Rd] Strange behaviour of the [[ operator

2006-09-30 Thread Robert Gentleman
True, re name matching, but I think we might want to consider a warning if they are supplied as the user may not be getting what they expect, regardless of the documentation Peter Dalgaard wrote: > Seth Falcon <[EMAIL PROTECTED]> writes: > >>> Similar things happen in many similar circumst

Re: [Rd] Strange behaviour of the [[ operator

2006-09-30 Thread Peter Dalgaard
Seth Falcon <[EMAIL PROTECTED]> writes: > > Similar things happen in many similar circumstances. > > Here's a similar thing: Not really, no? > > v <- 1:5 > > v > [1] 1 2 3 4 5 > > v[mustBeDocumentedSomewhere=3] > [1] 3 > > And this can be confusing if one thinks that subsetting is really a >

Re: [Rd] Strange behaviour of the [[ operator

2006-09-30 Thread Seth Falcon
Martin Maechler <[EMAIL PROTECTED]> writes: > >> a <- list(b=5) > >> a[['b']] > Herve> [1] 5 > >> a[[t<-'b']] > > Herve> Nothing gets printed! > > Yes, but that is not really much related to "[[" > but rather to "<-" which momentarily turns off auto-printing. Yes, not being

Re: [Rd] Strange behaviour of the [[ operator (PR#9263)

2006-09-30 Thread hpages
Hi Duncan, This is even more confusing with a matrix: > x <- matrix(5:-6, 3) > x [,1] [,2] [,3] [,4] [1,]52 -1 -4 [2,]41 -2 -5 [3,]30 -3 -6 > x[invisible(2),3] [1] -2 > x[2,invisible(3)] > .Last.value [1] -2 Tha

Re: [Rd] Help for methods

2006-09-30 Thread hadley wickham
> See the .helpForCall function in utils. It would recognize that the > function was an S4 generic, and then work out the signature and look for > matching help. I think working out the signature in the case above > would require it to call lm(...). So there's a precedent for what I > called a "

Re: [Rd] Strange behaviour of the [[ operator

2006-09-30 Thread Martin Maechler
> "Herve" == Herve Pages <[EMAIL PROTECTED]> > on Fri, 29 Sep 2006 18:06:41 -0700 writes: Herve> Hi, Herve> This looks like a bug: hmm, maybe... or maybe not; I vaguely recall that this is documented somewhere... >> a <- list(b=5) >> a[['b']] Herve> [1] 5 >> a[

Re: [Rd] Possible bug in Rcons_vprintf

2006-09-30 Thread Martin Maechler
Thanks, Jeffrey, that (change) looks very logical, reasonable, ... and I'll commit a patch to R-devel ASAP. On the other hand, I'm currently not intending to port the fix to the currently "deep frozen" R-2.4-branch [because "you never know ..."] unless you can argue a bit more why the change seem

[Rd] lowess: parameter 'delta' has no effect (PR#9264)

2006-09-30 Thread p . c . j . kleiweg
In the help page of lowess, it says: delta: values of 'x' which lie within 'delta' of each other are replaced by a single value in the output from 'lowess'. Defaults to 1/100th of the range of 'x'. It doesn't. No matter what value I give for delta, the result always has

Re: [Rd] Strange behaviour of the [[ operator (PR#9263)

2006-09-30 Thread murdoch
On 9/29/2006 9:06 PM, Herve Pages wrote: > Hi, > > This looks like a bug: > > > a <- list(b=5) > > a[['b']] > [1] 5 > > a[[t<-'b']] > > Nothing gets printed! > > I need to use parenthesis to see the expected result: > > > a[[(t<-'b')]] > [1] 5 Yes, I agree it looks lik

Re: [Rd] Help for methods

2006-09-30 Thread Duncan Murdoch
On 9/30/2006 1:17 AM, hadley wickham wrote: >> Yes, I agree that the current help system doesn't work very well on S3 >> methods. But I don't know how to fix it. I think the only way it could >> know what to do on a construction like >> >> ?summary(lm(...)) >> >> would be to actually evaluate sum