[R] problem with win.metafile( ): traceback()

Deepayan Sarkar deepayan at stat.wisc.edu
Mon Oct 20 22:04:16 CEST 2003


OK, I see the problem, and it should be fixed in the next release. Use 
trellis.device() till then. Thanks,

Deepayan

On Monday 20 October 2003 14:59, Paul, David A wrote:
> 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:deepayan at stat.wisc.edu]
> Sent: Sunday, October 19, 2003 12:48 PM
> To: Paul, David A; 'r-help at stat.math.ethz.ch'; '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")))




More information about the R-help mailing list