Re: [R] Automating an R function call

2011-08-13 Thread RobertJK
Thanks for your help everyone! I'm happy enough with an asynchronous solution here. Thanks! Robert -- View this message in context: http://r.789695.n4.nabble.com/Automating-an-R-function-call-tp3740070p3740333.html Sent from the R help mailing list archive at Nabble.com. [[alternative

[R] Automating an R function call

2011-08-12 Thread RobertJK
Any way to run an R function every 5 minutes from the R terminal? Searched around but couldn't find any answers. Thanks!! Robert -- View this message in context: http://r.789695.n4.nabble.com/Automating-an-R-function-call-tp3740070p3740070.html Sent from the R help mailing list archive

Re: [R] Automating an R function call

2011-08-12 Thread Ken
: http://r.789695.n4.nabble.com/Automating-an-R-function-call-tp3740070p3740070.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

Re: [R] Automating an R function call

2011-08-12 Thread Duncan Murdoch
On 12/08/2011 2:03 PM, RobertJK wrote: Any way to run an R function every 5 minutes from the R terminal? Searched around but couldn't find any answers. Thanks!! Yes, but not in the background: repeat { f() Sys.sleep(300) } If you want it run in the background, get your OS to run R to do

Re: [R] Automating an R function call

2011-08-12 Thread Greg Snow
greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of RobertJK Sent: Friday, August 12, 2011 12:03 PM To: r-help@r-project.org Subject: [R] Automating an R function call Any way to run an R

Re: [R] Automating an R function call

2011-08-12 Thread peter dalgaard
On Aug 12, 2011, at 21:26 , Duncan Murdoch wrote: On 12/08/2011 2:03 PM, RobertJK wrote: Any way to run an R function every 5 minutes from the R terminal? Searched around but couldn't find any answers. Thanks!! Yes, but not in the background: repeat { f() Sys.sleep(300) } If you

Re: [R] Automating an R function call

2011-08-12 Thread Ken Hutchison
Hey, Also, if your function varies in time (less than 5 minutes) then you could use total.time.difference=system.time(some.function)[1)] # (for user time) and you could plug this into your Sys.sleep() (which accepts decimal seconds) if you can #accept an error on the order of hundredths of