带Windows任务调度器的RSelenium makeFirefoxProfile

带Windows任务调度器的RSelenium makeFirefoxProfile,selenium,taskscheduler,rselenium,windows-task-scheduler,firefox-profile,Selenium,Taskscheduler,Rselenium,Windows Task Scheduler,Firefox Profile,我正在使用RSelenium软件包浏览firefox的网页。当我开始构建脚本时,我使用makeFirefoxProfile函数创建临时概要文件,用于设置下载目录和相关文件类型,以便将所需文件下载到特定目录中 当我尝试这样做时,我得到了一个关于zip文件的错误。经过一些研究,我安装了rtools并成功地处理了这个错误。我的剧本如我所料发挥了作用 现在我想在Windows机器上定期执行该操作。为此,当我尝试使用taskscheduleR Package为Windows task Scheduler创

我正在使用RSelenium软件包浏览firefox的网页。当我开始构建脚本时,我使用makeFirefoxProfile函数创建临时概要文件,用于设置下载目录和相关文件类型,以便将所需文件下载到特定目录中

当我尝试这样做时,我得到了一个关于zip文件的错误。经过一些研究,我安装了rtools并成功地处理了这个错误。我的剧本如我所料发挥了作用

现在我想在Windows机器上定期执行该操作。为此,当我尝试使用taskscheduleR Package为Windows task Scheduler创建任务时,由于Windows没有内置comman line zip工具,我遇到了一些zip错误

在我尝试操作任务后,您可以检查下面的错误代码

Error in file(tmpfile, "rb") : cannot open the connection
Calls: makeFirefoxProfile -> file
In addition: Warning messages:
1: In system2(zip, args, input = input, invisible = TRUE) :
  '"zip"' not found
2: In file(tmpfile, "rb") :
  cannot open file 'C:\Users\user\AppData\Local\Temp\RtmpKCFo30\file1ee834ae3394.zip': No such file or directory
Execution halted
在R-Studio中,当我运行脚本时,没有问题。谢谢你的帮助