On Wed, 18 Jun 1997, Richard Lammers wrote:
>
> Does R have the ability run in batch mode as described in the S New
'blue
> book'?
>
Not quite. You need to use eg
R <infile.r >outfile.log &
to take commands from infile.r and send output to outfile.log. It is
sensible to explicitly put
q("yes")
at the end of your file if you want created variables to be saved in
.RData. At the moment q("yes") is the default but there have been
efforts
to get this policy changed, so I wouldn't rely on it.
Also note that a bug in R0.49 causes a stack imbalance if there is an
error reported in the file.
Thomas Lumley
------------------------------------------------------+------
Biostatistics : "Never attribute to malice what :
Uni of Washington : can be adequately explained by :
Box 357232 : incompetence" - Hanlon's Razor :
Seattle WA 98195-7232 : :
------------------------------------------------------------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=