【发布时间】:2021-08-20 19:46:08
【问题描述】:
我目前正在查看此documentation 以使用 R 和 taskscheduleR 在我的机器上自动执行脚本。我对以下文档感到困惑:
在文档中的示例中,什么是“extdata”,这应该是我的 R 脚本的文件路径,而“helloworld.R”是实际的 R 脚本吗?
myscript <- system.file("extdata", "helloworld.R", package = "taskscheduleR")
我目前对此的看法如下:其中 C:/Users/santi/Documents/R Scripts 是我的文件路径,Wayerhaeuser_Automation_script.R 是我的实际 R 脚本
myscript <- system.file("C:/Users/santi/Documents/R Scripts", "Wayerhaeuser_Automation_script.R", package = "taskscheduleR")
taskscheduler_create(taskname = "myfancyscript", rscript = myscript,
schedule = "ONCE", starttime = format(Sys.time() + 62, "%H:%M"))
我对它的文档有点困惑。
【问题讨论】:
标签: r automation taskscheduler windows-task-scheduler