(PR#1242)[Rd] copy metafile from window() device fails when

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Fri, 4 Jan 2002 20:51:22 +0100 (MET)


The problem is known and is in grid/lattice. That starts up a blank page
before the first plot. It is not related to 1.3.1/1.4.0, but to grid
updates.  Paul Murrell has been informed!


On Fri, 4 Jan 2002 andy_liaw@merck.com wrote:

> Dear all,
>
> I'm running into a rather strange problem that hasn't happened before
> R-1.4.0.  If I make a plot on a window() device, and use the menu to either
> save to a metafile or copy to clipboard as a metafile, I get an error
> message in the R console:
>
> Error: A metafile can store only one figure.
>
> This only happens when the lattice (and grid) package is attached,
> regardless of whether the plot is Trellis or non-Trellis.  If I detach both
> lattice and grid, and make the plot on a fresh window() device, I have no
> problem getting the metafile.  If I try trellis.device(win.metafile,
> "try.emf", bg="white"), I get
>
> Error in if (color) { : argument is not interpretable as logical
>
> but the device is openned.  If I try to make a trellis plot, I get
>
> Error in grid.newpage() : A metafile can store only one figure.
>
> Any idea how to get around this problem?  TIA!!

Copy from an on-screen window.

>
> Cheers,
> Andy
> --please do not edit the information below--
>
> Version:
>  platform = i386-pc-mingw32
>  arch = x86
>  os = Win32
>  system = x86, Win32
>  status =
>  major = 1
>  minor = 4.0
>  year = 2001
>  month = 12
>  day = 19
>  language = R
>
> Windows NT 4.0 (build 1381) Service Pack 6
>
> Search Path:
>  .GlobalEnv, package:lattice, package:grid, package:ctest, Autoloads,
> package:base
>
> Andy I. Liaw, PhD
> Biometrics Research          Phone: (732) 594-0820
> Merck & Co., Inc.              Fax: (732) 594-1565
> P.O. Box 2000, RY70-38            Rahway, NJ 07065
> mailto:andy_liaw@merck.com
>
>
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._