[R] Running R non-interactively
    Gang Chen 
    gangchen at mail.nih.gov
       
    Wed Feb  6 17:01:32 CET 2008
    
    
  
Normally I can run an R script in batch mode with a command like this
R CMD BATCH MyScript.R MyOutput &
However I prefer to write another script containing something like
R --no-restore --save --no-readline < $1 >$2
so that I could run the original script simply on the prompt as
MyScript.R MyOutput &
The second method is almost the same as the R CMD BATCH method except  
MyOutput does not contain the output from the OS calls such as system 
(). So what option(s) should add in the second approach to make it  
identical to R CMD BATCH?
Thanks,
Gang
    
    
More information about the R-help
mailing list