Re: [R] how to pass a command variable in DOS to R program in R CMD BATCH

2009-03-02 Thread Gabor Grothendieck
Create a file test.R containing this single line: print(commandArgs(TRUE)) and then try this: Rscript test.R a b c On Mon, Mar 2, 2009 at 6:22 PM, Xianming Wei wrote: > Hi all, > > > > I need to run a program (asreml) thousands of times and each time I have > to provide a slightly diffe

[R] how to pass a command variable in DOS to R program in R CMD BATCH

2009-03-02 Thread Xianming Wei
Hi all, I need to run a program (asreml) thousands of times and each time I have to provide a slightly different dataset. Because I have to run asreml under Windows (DOS or scripts) environment, I have trouble to pass a command variable (or pointer variable or %counter in the following example)