On 26/02/2015 2:08 PM, Doran, Harold wrote:
Is there functionality within R proper, without having to revert to the OS, allowing a function or a portion of an R script to be run at a defined time? My google searches haven't provided much other than one at the link below which relies on an OS.
If you want it to start 1000 seconds from now, use Sys.sleep(1000) as your first statement. You'll have a process sitting there using no CPU (but perhaps lots of virtual memory) until the sleeping is done. Using cron is better.
Duncan Murdoch ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.