bnosac / taskscheduleR

Schedule R scripts/processes with the Windows task scheduler.
330 stars 72 forks source link

task scheduler not working #31

Closed alishj closed 6 years ago

alishj commented 6 years ago

Hey,

Task Scheduler does not run the task. at first I ran the example code you have in README, it did not work so I opened tasks dataframe and found out that the last run time did not changed and there is no log. So I've moved the helloword file to another location( C:\taskscheduler ) and I change the myscript to this

myscript <- 'C:\taskscheduler\helloworld.R' mylog <- 'C:\taskscheduler\helloworld.log' taskscheduler_create(taskname = "myfancyscript", rscript = myscript, schedule = "ONCE", starttime = format(Sys.time() + 62, "%H:%M"))

but It still does not run it. I think there is something wrong with the Task to Run part :
cmd /c C:/PROGRA~1/R/R-34~1.3/bin/Rscript.exe "C:\taskscheduler\helloworld.R" >> "C:\taskscheduler\helloworld.log" 2>&1

I really appreciate your help

alishj commented 6 years ago

problem solved. Seems like it had the permission issue.