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\batch_file.R

where batch_file.R has the script you want to run.  I use this command in
windows task scheduler.



On 9/7/06, Dirk Eddelbuettel <edd@debian.org> wrote:
>
>
> 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 platform?  On Linux/Unix, Jeffey Horner's interp does just that.
> Currently at version 0.0.4 and may undergo a renaming in the near future
> ...
>
> http://wiki.r-project.org/rwiki/doku.php?id=developers:rinterp
>
> Hth, Dirk
>
> --
> Hell, there are no rules here - we're trying to accomplish something.
>                                                  -- Thomas A. Edison
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>

	[[alternative HTML version deleted]]

