[R] commandArgs usage and --args invokation
ivowel at gmail.com
Sun Apr 1 03:51:01 CEST 2007
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 into interactive mode ?! I guess it really is skipping the
rest of the command line
$ /usr/bin/R CMD BATCH commandArgs.R --args 1
$ ls -lt | head
-rw-rw-r-- 1 ivo ivo 827 Mar 31 21:47 --args
Could someone please let me know?
[also, are there multi-core versions of R? my guess is no, but since
I have a second processor lying around, I am trying to get it into the
A working example would be appreciated.
More information about the R-help