R-beta: q and postscript in win95

Joel Allen (jallen@students.cas.unt.edu)
Tue, 5 Aug 1997 10:10:47 -0600

From: "Joel Allen" <jallen@students.cas.unt.edu>
To: <r-help@stat.math.ethz.ch>
Subject: R-beta: q and postscript in win95
Date: Tue, 5 Aug 1997 10:10:47 -0600

I have recently been introduced to R for win95 and have been impressed by
it.  It seems to outperform S-Plus greatly.  I have had 2 problems.  I am
using visual basic to automate an analysis.  The vis basic routine waits
for the creation of a data file then calls R to start the analysis.  I have
placed the source() command in the rprofile file so it will be run
automatically.  Output of the analysis is a graph.  I have not been able to
get the postscript command to work.  The command line that I am using

postscript(file="c:/rdata/current.ps", paper="letter", landscape=TRUE,
family="Helvetica", pointsize=12,bg="white", fg="black")

Is the command incorrect or is there a larger problem with postscript()?
Will other graphical output formats such as the Windows Metafile be added?

I am also trying to use the q("no") command from within the script to quit
R.  When I do this, R asks if I want to save the image anyway.  I need R to
close itself after the script has been run.  q("no") when entered at the
command line works as it should.  Any suggestions?   

Joel Allen
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@stat.math.ethz.ch