Skip to content
Prev 166599 / 398502 Next

Arguments for Rcmd BATCH

I suggested you use Rscript, please do.

R CMD BATCH is the Unix-alike notation.  Rcmd BATCH is the recommended 
way on Windows, but R CMD BATCH is also accepted.

There is nothing to reproduce here, so here is a simple example.

tystie% cat foo.R
args <- commandArgs(TRUE)
print(args)

tystie% Rscript foo.R parms=1:33
[1] "parms=1:33"

You can redirect the output as you wish.
On Sun, 11 Jan 2009, Andrew Hicks wrote:

            
That's nothing like what is documented.