[Rd] [patch] add=TRUE in plot.default()

2008-03-08 Thread Andrew Clausen
Hi all, As long as I've used R, add=TRUE hasn't worked in contexts like this: f <- function(x) x^2 X <- seq(0, 1, by=1/4) plot(f, col="blue") plot(X, f(X), col="red", type="l", add=TRUE) I attached a fix for version 2.6.2. Cheers, Andrew diff --git a/src/library

Re: [Rd] embedFonts() side-effect under 2.6.2 ?

2008-03-08 Thread Андрей Парамонов
Hi! Upon some investigation it turned out that the bug is *not* actually in R. I've uninstalled "ghostscript" Debian package and reverted back to "gs-gpl" Debian package, and the problem gone. That means that the bug is either in new ghostscript or in the way R interacts with it. Reassigning the

Re: [Rd] NA warnings for r() {aka "patch for random.c"}

2008-03-08 Thread Patrick Burns
Martin Maechler wrote: > [ ... ] > >But actually, part of the changed behavior may be considered >undesirable: > > rnorm(2, mean = NA) > >which gives two NaN's would now produce a warning, >where I could argue that > 'arithmetic with NAs should give NAs without a warning' >since > 1:2 + NA >