Re: [R] commandArgs usage and --args invokation

2007-04-01 Thread Prof Brian Ripley
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 things

Re: [R] commandArgs usage and --args invokation

2007-04-01 Thread Dirk Eddelbuettel
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/

Re: [R] commandArgs usage and --args invokation

2007-04-01 Thread ivo welch
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

[R] commandArgs usage and --args invokation

2007-03-31 Thread ivo welch
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