[Rd] "R CMD check" with R 2.0.0

Deepayan Sarkar deepayan at stat.wisc.edu
Thu Oct 7 16:32:09 CEST 2004

On Thursday 07 October 2004 08:55, Berwin A Turlach wrote:
> G'day all,
> I am not sure whether I should file this as a bug report, but I
> thought that I should make the developers of R aware of the following
> feature:
> I have just installed R 2.0.0 and when I run "R CMD check" on the
> source of some packages, I noticed that the XXX-examples.ps file
> contains one page with two graphics overlaid.  This seems to happen
> when the first graphic is produced that uses the lattice() package.
> I.e. as long as the examples use non-lattice graphics command, each
> graphic is on its own page; the first graphic produced by a lattice
> command (well, xyplot each time in the packages tested) is put on the
> same page as the last graphic, after this, each graphic is again on a
> page off its own regardless of whether it was produced by a lattice
> graphics command or a non-lattice graphics command.

I can confirm this, e.g. with 

> postscript()
> plot(1)
> xyplot(2 ~ 2)
> dev.off()

(not that obvious on screen because the dark background overwrites the 
first plot). The underlying reason seems to be grid not knowing whether 
to start a new page the first time:

> x11()
> plot(1)
> grid.newpage()
> grid.points(x = runif(10), y = runif(10), vp = viewport())

Paul, any ideas?


More information about the R-devel mailing list