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 HT
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 second
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)
>
hcare
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
&
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 i
Hey,
Sys.sleep(300)
?Sys.sleep
Ken Hutchison
On Aug 12, 2554 BE, at 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!!
> Robert
>
> --
> View this message in context:
> http://r.7896
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 at Nabble.
7 matches
Mail list logo