I don't know if this code match what you want. You should use tcltk library.
code:
library(tcltk)
z <- function () { cat("Hello you!\n"); .id <<- tcl("after", 1000, z)}
z()
If you want to cancel you can use:
.id <<- tcl("after", 1000, z)
tcl("after", "info", .id) # To get info about this schedul
That is what the task scheduler is for. Just create a ".bat" file
that invokes R and schedule it every two hours. On Win XP it is
Control Panel/Scheduled Tasks.
On Mon, Dec 19, 2011 at 11:10 AM, Kenneth Zhang wrote:
> I'd like to run an R code automatically on Windows 7, say once every 2
> hour
I'd like to run an R code automatically on Windows 7, say once every 2
hours. Could anyone tell me how to manage it?
Thanks in advance!
Best regards,
Ken
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.et
3 matches
Mail list logo