In R1.8.0 for Windows, immediately after I execute win.metafile(...) and lset(...) I get the following values for .Device and .Devices:
> .Device [1] "win.metafile://.../plot1.wmf" > .Devices [[1]] [1] "null device" [[2]] [1] "win.metafile://.../plot1.wmf" However, when I change to > trellis.device(win.metafile, + file = "//.../plot1.wmf", + width = 8.5, height = 6.25) > > lset( list( background = list(col = "white"))) I get _no_ errors, and xyplot(...) creates the appropriate windows metafile. -david paul -----Original Message----- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Sent: Sunday, October 19, 2003 12:48 PM To: Paul, David A; '[EMAIL PROTECTED]'; 'Deepayan Sarkar' Subject: Re: [R] problem with win.metafile( ): traceback() On Sunday 19 October 2003 11:49, Paul, David A wrote: > For the first error message: > > win.metafile(file = "//.../plot1.wmf", > + width = 8.5, height = 6.25) Could you check what the value of the .Device variable (and .Devices as well) is at this point ? And not that it should matter, but what happens if you use trellis.device(win.metafile, file = "//.../plot1.wmf", width = 8.5, height = 6.25) Deepayan > > lset( list( background = list(col = "white"))) > > Error in get(x, envir, mode, inherits) : > variable "win.metafile://.../plot1.wmf" was not found > > > traceback() > > 4: get(device) > 3: trellis.device(device = .Device, new = FALSE) > 2: trellis.par.get(item) > 1: lset(list(background = list(col = "white"))) ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
