Is there a way to pass command line arguments to R for use in BATCH mode or something similar? -- -Alex Morgan Homepage: http//pubpages.unh.edu/~amorgan AIM login: HomeySage "Anyway, no drug, not even alcohol, causes the fundamental ills of society. If we're looking for the source of our troubles, we shouldn't test people for drugs, we should test them for stupidity, ignorance, greed and love of power." P.J. O'Rourke -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Alex Morgan wrote:> > Is there a way to pass command line arguments to R for use in BATCH mode > or something similar?Please tell us on which OS you are working and which version of R you are using (assuming R-1.1.1). As I can see from the mail header, you are running WinNT, so you should read the "R for Windows FAQ". Here the relevant part to answer your question: ---------- 2.6 Can I use R BATCH? No, but you can set up a batch file using Rterm.exe. A sample batch file might contain (as one line) path_to_R\bin\Rterm.exe --vsize=10M --nsize=500k --no-restore --no-save < %1 > %1.out ---------- Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 Tue, 22 Aug 2000, Alex Morgan wrote:> Is there a way to pass command line arguments to R for use in BATCH mode > or something similar?help(commandArgs) -thomas Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle> > -- > -Alex Morgan Homepage: http//pubpages.unh.edu/~amorgan > AIM login: HomeySage > > "Anyway, no drug, not even alcohol, causes the fundamental ills of > society. > If we're looking for the source of our troubles, we shouldn't test > people > for drugs, we should test them for stupidity, ignorance, greed and love > of > power." P.J. O'Rourke > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._