Look at the documentation of Rscript, e.g. ?Rscript at the R prompt.
On Sat, 8 May 2010, Robin Jeffries wrote:
> I want to set up a windows system task that will run a .R script at
> pre-specified times.
>
> Can someone please help with the command line syntax that I would assign to
> the task?
>
> I know that i can open a command prompt, type R, and then source the file,
> but I don't know how to pass multiple line arguments to the command
line in
> a system task.
>
> Thanks,
>
> ~~~~~~~~~~~~~~~~~~~
> -Robin Jeffries
> Dr.P.H. Candidate in Biostatistics
> UCLA School of Public Health
> rjeffries at ucla.edu
> 530-624-0428
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595