Re: [R] automation of R? running an R script at a certain time each night?

From: Felipe Carrillo <mazatlanmexico_at_yahoo.com>
Date: Fri, 23 May 2008 09:25:54 -0700 (PDT)


Hi:
Edward, were you able to automate the process? if so, do you mind giving me a hint on how you did it? I am facing the same problem. I created a batch file which it runs fine using the task scheduler but only opens Tinn-R and R but it doesn't execute my script. My task scheduler executes everyday at 8:00 am This is my batch file:
@echo off
Start "" "C:\Program Files\R\R-2.7.0\bin\Rgui.exe"  start "" "C:\Documents and
settings\Desktop\Software\MyScript.r"

What am I missing?

> You might try cron job under Windows.
>
> http://drupal.org/node/31506
>
> HTH.
>
> - Edward
>
> On Thu, May 22, 2008 at 8:51 AM, Thomas Pujol
> <thomas.pujol_at_yahoo.com> wrote:
> > I am using R in a Windows environment.
> >
> > I store my data in a Microsoft SQL database that
> gets updated automatically nightly. Once my SQL db
> is updated, I wish to automatically run an R
> "script"
> >
> > Any tips on "good" ways to approach this task?
> >
> > Is there an easy way to "launch" an R script using
> the Windows or other "scheduler"? Can I have an
> R-script run every hour, and within the script check
> to determine if my database is updated, and proceed
> only if it is updated?
> >
> >
> > [[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.
> >
>
> ______________________________________________
> 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.
>

 Felipe D. Carrillo
  Fishery Biologist
  Department of the Interior
  US Fish & Wildlife Service
  California, USA



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. Received on Fri 23 May 2008 - 16:55:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 23 May 2008 - 18:30:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive