Using R in batch mode should work on both Windows and Linux:
R CMD BATCH (assuming that R.exe is in your path)
Even without R's location in your path, you could issue the following
command at the prompt (in windows):
"c:\Program Files\R\R-2.3.1\bin\R.exe" CMD BATCH --vanilla --slave
i:\R_HOME\bat
On 7 September 2006 at 14:39, Zodet, Marc W. (AHRQ) wrote:
| Is there any way to run an R script file (i.e., *.R) from the command
| prompt in the console window. Ultimately, I'm looking to put such code
| in a script file so that it can set off other R scripts/programs as
| needed.
Which platfo
All:
Is there any way to run an R script file (i.e., *.R) from the command
prompt in the console window. Ultimately, I'm looking to put such code
in a script file so that it can set off other R scripts/programs as
needed.
Thanks.
Marc
[[alternative HTML version deleted]]