From bates@stat.wisc.edu  Thu Jan 15 19:17:27 1998
From: bates@stat.wisc.edu (Douglas Bates)
Date: Thu, 15 Jan 1998 13:17:27 -0600 (CST)
Subject: a -nographics option to R
Message-ID: <m0xsun9-000hiQC@franz.stat.wisc.edu>

Right now the standard R.profile assigns the .First function as

 .First <- function() {
   if (interactive() && getenv("DISPLAY") != "") x11()
 }

Is it reasonable to extend that a bit and use

 .First <- function() {
   if (interactive() && getenv("DISPLAY") != "" && ! (getenv("R_NOX") != "")) x11()
 }

or something like that then put a -nographics flag into the R script
that would set R_NOX.  I am encountering the same kind of difficulty
that Peter Dalgaard mentioned when working remotely over a slow
connection.  I'm just checking that the compiled R works properly on
the other computer and I don't want to wait for it to spring up the
X11 window every time it starts.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


a -nographics option to R
Douglas Bates