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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to