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
Steps: 1. write your code in R command line format 2. save to a .sh file 3. Add to cron of linux machine Regards, Vivek -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Johnson, Alex Sent: Friday, October 11, 2013 4:05 PM To: r-help

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