You are looking to run R in batch mode

see How to run R in batch mode [1] and the Quick-R on Batch Processing [2]

[1] http://turing.une.edu.au/~stat356/Rbatch.html
[2]  http://www.statmethods.net/interface/batch.html

On Mon, Mar 5, 2012 at 8:55 AM, vincent.deluard
<vincentdelua...@gmail.com>wrote:

>
> Hi R-users,
>
> I am trying to automate the daily running of a simple R script from Windows
> 7.
> >From previous posts, I understand that this needs to be done with the task
> scheduler.
> I can schedule my laptop to automatically open R at a certain time, but not
> to execute a script.
>
> Secondary question: how do I save a list of R commands so that they get
> executed once the file is open?
> Right now, I save my code in a notepad doc and paste over in R, but there
> has to be another way. I have tried saving my code as .r file using the
> editor and open the file with R later but this does not seem to execute the
> code.
>
> I very much appreciate the help.
>
> Vincent Deluard, CFA
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Automating-R-script-with-Windows-7-tp4446693p4446693.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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