Re: [Rd] "R CMD check" with R 2.0.0

From: Deepayan Sarkar <deepayan_at_stat.wisc.edu>
Date: Fri 08 Oct 2004 - 00:32:09 EST

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?

Deepayan



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Oct 08 00:45:58 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:29 EST