【发布时间】:2018-09-02 18:25:39
【问题描述】:
按照这些说明,我在 Google 计算实例上运行了 R-Studio Server:http://code.markedmondson.me/launch-rstudio-server-google-cloud-in-two-lines-r/
当我从这个 RStudio-Server 打开一个终端时,我注意到 man、ps、vi、cron 都不存在。
bash: ps: command not found
我的目标是让一个简单的 cron 作业定期运行 R-Script。 我手动安装了 cron:
sudo apt-get update
sudo apt-get install cron
不过,我无法让 cron 运行此测试:
cmd <- cron_rscript("/home/law9723/now_to_file.R")
cron_add(cmd, frequency = "*/1 * * * *", id = "now_to_file", description = "Write now to file every minute")
-显然很困惑
【问题讨论】:
-
我了解到您正在尝试通过运行 cron_add 将 R 接口与 Google Compute Engine 一起使用来添加 cron 作业。您收到错误消息吗?如果是这样,您可以在此处发布以获取更多上下文吗?谢谢。
-
嗨。没有错误信息。我最终使用这些说明启动了一个虚拟机:
标签: cron google-compute-engine rstudio-server