[R] variables from command line

Omar Lakkis uofiowa at gmail.com
Wed Sep 7 16:47:43 CEST 2005


How can I pass parameters to an R script from the command line. And
how can I read them from within the script?

This is how I want to invoke the script:
R CMD BATCH r.in r.out  <input values>

The script with read in the input values, process them and spit the
output to r.out.




More information about the R-help mailing list