Skip to content

Rterm BATCH versus Splus BATCH

3 messages · Steven Sullivan, Brian Ripley, Jonathan Baron

#
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?

Many thanks.
STS



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
There is no such thing as `Rterm BATCH'.

Perhaps you should read the rw-FAQ before posting FAQs?
On Sun, 25 Aug 2002, Steven Sullivan wrote:

            

  
    
#
On 08/25/02 13:22, Steven Sullivan wrote:
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._