Re: [R] Evaluating content of command line arguments

2009-05-01 Thread JiHO
On 2009-April-30 , at 22:28 , Gabor Grothendieck wrote: Check out the getopt package. Thanks! That's what I need. JiHO --- http://jo.irisson.free.fr/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Evaluating content of command line arguments

2009-04-30 Thread Gabor Grothendieck
Check out the getopt package. On Thu, Apr 30, 2009 at 10:10 PM, JiHO wrote: > Hello everyone, > > I am writing an R script which will be provided with command line arguments > by a shell script. I read them with commandArgs() but I have an issue to > make that fool proof. > > For example, with te

[R] Evaluating content of command line arguments

2009-04-30 Thread JiHO
Hello everyone, I am writing an R script which will be provided with command line arguments by a shell script. I read them with commandArgs() but I have an issue to make that fool proof. For example, with test.R containing: args=commandArgs(trailingOnly=TRUE) args I get: