Re: [R] automation of an R script to run

2013-10-14 Thread Johnson, Alex
From: Greg Snow [mailto:538...@gmail.com] Sent: 11 October 2013 18:45 To: Johnson, Alex Cc: r-help Subject: Re: [R] automation of an R script to run Look at the ?Startup help page in R. It shows a couple of ways to have code run automatically when R starts (and can depend on which folder R

Re: [R] automation of an R script to run

2013-10-11 Thread Greg Snow
Look at the ?Startup help page in R. It shows a couple of ways to have code run automatically when R starts (and can depend on which folder R starts from). So you could have the windows task scheduler run R and use the above to set the script to run. Also look at ?Rscript for a way to run a scri

Re: [R] automation of an R script to run

2013-10-11 Thread vivek
-help@r-project.org Subject: [R] automation of an R script to run Hi, I was wondering if there is there a way you can schedule an R script to run automatically through a scheduled task in windows or similar?.. Would R have to be open on the user's PC or could it be closed providing we point

Re: [R] automation of an R script to run

2013-10-11 Thread Anthony Damico
if you want to use R itself, you could try -- # check your time zone's abbreviation Sys.time() # subtract the time you want the program to run from the current time, # including your time zone..mine is EDT Sys.sleep( as.POSIXct( "2013-10-11 06:30:00 EDT" ) - Sys.time() ) -- at the very top of

[R] automation of an R script to run

2013-10-11 Thread Johnson, Alex
Hi, I was wondering if there is there a way you can schedule an R script to run automatically through a scheduled task in windows or similar?.. Would R have to be open on the user's PC or could it be closed providing we pointed it correctly at R?... Thank you Alex Alex Johnson Opera