Re: [R] how to run a R program with input arguments

2009-07-13 Thread edisonying
Thanks for your help. I found another cmd as follows: R CMD BATCH infile outfile what's the difference between this expression and commandArgs()? I try to refer to the instruction of commandArgs but it seems not very helpful. Henrique Dallazuanna wrote: > > See commandArgs() function. >

Re: [R] how to run a R program with input arguments

2009-07-13 Thread edisonying
Thanks for your help. I found another cmd as follows: R CMD BATCH infile outfile what's the difference between this expression and your suggestion? cls59 wrote: > > > edisonying wrote: >> >> I am a beginner in R and know only a little about it yet. I have a script >> written in R langua

Re: [R] how to run a R program with input arguments

2009-07-13 Thread cls59
edisonying wrote: > > I am a beginner in R and know only a little about it yet. I have a script > written in R language, named as "a.txt" for example. I am using a Linux > machine, at present I only know that I can type "R" in the terminal and > then copy-paste the content in "a.txt" to the R's

Re: [R] how to run a R program with input arguments

2009-07-13 Thread Henrique Dallazuanna
See commandArgs() function. On Mon, Jul 13, 2009 at 4:15 PM, edisonying wrote: > > I am a beginner in R and know only a little about it yet. I have a script > written in R language, named as "a.txt" for example. I am using a Linux > machine, at present I only know that I can type "R" in the termi

[R] how to run a R program with input arguments

2009-07-13 Thread edisonying
I am a beginner in R and know only a little about it yet. I have a script written in R language, named as "a.txt" for example. I am using a Linux machine, at present I only know that I can type "R" in the terminal and then copy-paste the content in "a.txt" to the R's interface to execute the progr