hanks, dirk. this looks a bit nicer than what I put together in the
last hour, which is a simple perl script that gives me the syntax I
most like:
$ R batch.R arg1 arg2
personally, because this has no meaning in the current invoke
syntax, I think that R should understand this as the obvious
shor
Ivo,
For R 'shell scripts', esp. on Unixy system (incl OS X), our littler frontend
can be of help. See
http://dirk.eddelbuettel.com/code/littler.html
or
http://biostat.mc.vanderbilt.edu/LittleR
as well as the SVN archive
svn checkout http://littler.googlecode.com/svn/trunk/ littl
On Sat, 31 Mar 2007, ivo welch wrote:
> Dear R experts:
>
> I am a bit stymied by how the argument picking-off works in R batch file
> usage.
You seem to mean 'R CMD BATCH' usage (there are other ways to run R in
batch), and also I will assume you are talking only about a Unix-alike
(these thi
Dear R experts:
I am a bit stymied by how the argument picking-off works in R batch file usage.
$ cat commandArgs.R
cat(" Command Line Arguments were ", commandArgs(), "\n");
$ /usr/bin/R CMD BATCH commandArgs.R --args 1 2 3
$ /usr/bin/R --args 1 CMD BATCH commandArgs.R
... I am now getting int