Skip to content
Prev 166602 / 398502 Next

Arguments for Rcmd BATCH

Professor Ripley,

Thank you very much.

I have used Rscript and it runs fine now.

Your help is very much appreciated.

Best wishes,

Andrew hicks

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Sent: 11 January 2009 01:23
To: Andrew Hicks
Cc: r-help at r-project.org
Subject: RE: [R] 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:

            
However
output
include
That's nothing like what is documented.
Outlook
not
be