Re: [R] How to schedule R to run automatically

2011-12-19 Thread Agus MS
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

Re: [R] How to schedule R to run automatically

2011-12-19 Thread jim holtman
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

[R] How to schedule R to run automatically

2011-12-19 Thread Kenneth Zhang
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