[Rd] gpar fill and transparency on devices

2010-08-04 Thread baptiste auguie
Dear list, I'm puzzled by the graphical output in the following example, library(grid) foo <- function(){ grid.rect(gp=gpar(fill="black")) print(get.gpar()$fill) grid.rect(width=0.2,height=0.2) } png("test.png", bg = "transparent") foo() dev.off() png("test1.png", bg = "white") foo() dev

[Rd] problem in predict.lm(type="terms", terms=someNames, interval="confidence", ...)

2010-08-04 Thread William Dunlap
R's predict.lm() fails when trying to compute term-wise confidence (or prediction) intervals for a subset of the terms in a model: > dat <- data.frame(y=log(1:10), x=1:10, fac=rep(LETTERS[11:13],c(3,3,4))) > fit <- lm(y~fac*x, data=dat) > # can compute intervals for all terms > pfit <- predict(fit

Re: [Rd] License for Rembedded.h

2010-08-04 Thread Tom Quarendon
I've looked at various threads on the r-devel archive and it looks like this may have been discussed before, but as far as could tell, not to any great resolution, and not, it seems, specifically covering this angle. My understanding of LGPL is that ALL of the source files that go into R.dll (a