[R] passing command line arguments to 'R CMD BATCH myScript.R'
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Feb 25 18:51:05 CET 2005
On Fri, 25 Feb 2005, Brahm, David wrote:
> I have never understood the difference between
>> R CMD BATCH --vanilla --slave myScript.R outFile.txt
> and
>> R --vanilla --slave < myScript.R > outFile.txt
[On Unix-alikes]
Mainly cosmetics, e.g. the first adds timings and options(echo=TRUE) and
generates a suitably named outfile. [Also sets --restore --save which
you then override.]
It used to set --gui=none to avoid the overhead of loading the X11 module.
More importantly, the first redirects stderr and yours does not, but see
my reply to the OP's other thread for a closer equivalent.
[...]
--
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list