[R] dev.list() not a list?

Bill Simpson wsi at gcal.ac.uk
Tue Feb 15 13:06:35 CET 2000


Isn't dev.list() a list? I am using R-0.99a

> dev.list()
NULL
> is.list(dev.list())
[1] FALSE
> is.null(dev.list())
[1] TRUE
Fine.


> x11()
> dev.list()
X11 
  2 
> is.null(dev.list())
[1] FALSE
> is.list(dev.list())
[1] FALSE
What is it then, if not a list? Is this a bug?


My basic problem: I want my function to do
x11(height=6, width=6, pointsize=20)
if no x11 window is open yet (if dev.list() is NULL)

Thanks for any help.

Bill

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list