[R] Non-interactive sessions

Neil E. Klepeis nklepeis at uclink4.berkeley.edu
Sat Sep 18 01:07:30 CEST 1999


Quick Summary:   How does R function non-interactively?  I can't print
graphics to an X11 window.

I set up what appears to be called a "noninteractive" R session using
the Perl code at the end of this message.  Everthing seems to work fine
as written.  I get a nice postscript file with my graphics.

However, I would like to display X11 R-graphics for the Perl-script
user.  Is there some way of sending commands to R to configure this
"noninterative mode"?  Especially so that I can produce X11 graphics.

Another related issue:  When I first sent the pipe to R (with no
options) it didn't work and I got the following error message:

" Fatal error : you must specify '--save', '--no-save', or '--vanilla' "

What is the '--vanilla' option all about?


Appendix: My Perl Code
use FileHandle;
$R = new FileHandle ("| R --no-save");

Neil E. Klepeis, School of Public Health, UC Berkeley, USA
Web: http://socrates.berkeley.edu/~nklepeis
Email: nklepeis at uclink4.berkeley.edu
Voice: 510-848-5827
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