[R] Printing Lattice Graphs from Windows

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Jun 6 22:36:30 CEST 2004

On Sun, 6 Jun 2004, Duncan Murdoch wrote:

> On Sun, 6 Jun 2004 15:00:52 -0500, Dirk Eddelbuettel <edd at debian.org>
> wrote:
> >
> >But isn't it a bug in the windows version of R if the Rgui.exe cannot copy
> >to the clipboard where Rterm.exe can?
> Yes, definitely.  Can someone distill this down to code that uses only
> the base packages (e.g. just grid)?  Lattice is a recommended package,
> so I'd refer you to its maintainer, but it's probably something in a
> base package that's going wrong.
> Once you've done that, please submit it as a bug report with
> reproducible code.  I've never looked at the Windows metafile device
> driver, so it's unlikely I'll fix this by 1.9.1, but it is something
> that should be fixed.

It is not just lattice (try the second example in ?Grid) and it is not 
just metafile (try saving to PDF) and it is not wholly reproducible.  But 
most of the time (but not quite all the time)

grid.show.viewport(viewport(x=0.6, y=0.6,
                            w=unit(1, "inches"), h=unit(1,"inches")))
# copy to metafile or PDF from menu

fails.   This is the same from RGui or Rterm, and I've had one copy 
succeed and then a second copy fail.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list