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:> 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?-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._