[R] The options for device

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Fri Jan 10 09:28:03 CET 2003


Look like when you compiled 1.6.1 the X11 files were not found.
This option is set in the .../library/base/R/Rprofile file as

if(interactive() && Sys.getenv("DISPLAY") != "") {
    options(device = switch(.Platform$GUI,
            "X11" = "X11", "GNOME" = "gtk", "postscript"))
} else options(device = "postscript")

and if the X11 device is available (see capabilities()) then you should
get X11 unless you invoke R with  R --gui="something", e.g. --gui=none
or --gui=GNOME.

On Thu, 9 Jan 2003, Changxuan Mao wrote:

> Hi,
>
> I complied the R-1.6.1 source file on my 386 debian linux system.
> However, I cannot get graphical output from the screen.
> The options(device) is set to postscript
>
> > getOption("device")
> [1] "postscript"
>
> After I change it to X11 ( as shown in my R 1.5.1 version on the same
> system) it says  that X11 device is not loaded.
>
> > options(device="X11")
> > getOption("device")
> [1] "X11"
> > plot(rnorm(10))
> Error in X11() : the x11 device has not been loaded
> >
>
> After I quit the R session and invoke it again, the options() changes
> back.
>
>
> > getOption("device")
> [1] "postscript"
> >
>
>
> This problem does not occur for R1.5.1 in the same machine, under the same
> system. Anyone has an idea to help me eliminate the problem?
>
> Best
>
> Changxuan
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list