[R] Rterm BATCH versus Splus BATCH

Jonathan Baron baron at cattell.psych.upenn.edu
Sun Aug 25 19:54:23 CEST 2002


On 08/25/02 13:22, Steven Sullivan wrote:
>I have written a batch file I thought would run in R (for Windows, 1.5.1),
>but as the documentation suggests, R is different in how it handles BATCH
>from S-Plus (i.e. not directly equivalent to "Splus BATCH infile outfile
>errfile").
>
>If the file consists of a list of valid R commands, what's the best way of
>automating it?

I assume you mean "of running it".

I don't know the _best_ way, but one way is:

R --vanilla < myfile.R

(on Unix/Linux)

Jon
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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