[R] X11 device now needs to be explicitly started?
p.connolly at hortresearch.co.nz
Thu Jan 16 21:12:03 CET 2003
On Wed, 15-Jan-2003 at 10:47PM -0600, Deepayan Sarkar wrote:
|> On Wednesday 15 January 2003 07:35 pm, Patrick Connolly wrote:
|> > _
|> > platform i686-pc-linux-gnu
|> > arch i686
|> > os linux-gnu
|> > system i686, linux-gnu
|> > status
|> > major 1
|> > minor 6.2
|> > year 2003
|> > month 01
|> > day 10
|> > language R
|> > Until this version, I've not had to explicitly start the x11 device.
|> > Now, (at least with lattice plots), one is not automatically started
|> Could you explain ? There's sometimes a warning, but I haven't seen
|> the device not being opened.
On closer inspection, I see that it falls over earlier than the
plotting itself. It arises when I attempt to adjust some trellis
settings. This is the message:
Error in trellis.par.set(y, x) : No device is currently Active
I notice that trellis.par.set has been changed this time.
function (name, value, warn = TRUE)
stop("value must be a list")
if (warn && is.null(dev.list()))
stop("No device is currently Active")
lattice.theme[[.Device]][[name]] <<- value
Previously, it had been only the last line.
The problem arises because dev.list() returns NULL if no device is
open and thus the call to stop().
I don't know whether it would be a good idea to have trellis.par.set
start the default device.
Ph: +64-9 815 4200 x 7188
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it. ---Steven Wright
More information about the R-help