I am using taskscheduleR to run my R code. The one I have to run ONCE works just fine, however none of the other ones (HOURLY, WEEKLY, DAILY, etc.) work despite that R reports "SUCCESS: The scheduled task "test2" has successfully been created."
Here is the code I used to run ONCE (works fine):
library(taskscheduleR)
myscript <- 'C:\\Users\\....\\File.R'
taskscheduler_create(taskname = "test1", rscript = myscript,
schedule = "ONCE", starttime = format(Sys.time() +
62, "%H:%M"))
Here is the code I used to run WEEKLY(does not work):
library(taskscheduleR)
myscript <- 'C:\\Users\\....\\File.R'
taskscheduler_create(taskname = "test3", rscript = myscript,
schedule = "WEEKLY", starttime = "09:00", days =
"THU")
There is no log generated in this case and it looks like task was never scheduled.
similar for the HOURLY (does not work): library(taskscheduleR) myscript <- 'C:\Users\....\File.R' taskscheduler_create(taskname = "test2", rscript = myscript, schedule = "DAILY", starttime = "09:10") There is no log generated in this case and it looks like task was never scheduled.