[Rd] copy metafile from window() device fails when lattice/grid is (PR#1242)

andy_liaw@merck.com andy_liaw@merck.com
Fri, 4 Jan 2002 20:44:49 +0100 (MET)


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!!

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._