我想在mac中自动化一个脚本。我遵循了this post,但是Automator抛出了一个错误的-: Rscript: command not found。实际上,在Automator中运行简单的命令Rscript是不起作用的。但它在航站楼里能用。有什么建议吗?
我试图安装最新版本的R (3.6.2),但矛盾仍然存在。
版本信息:
R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night"
Platform: x86_64-apple-darwin15.6.0 (64-bit)发布于 2020-01-06 05:00:40
正如@alistaire所建议的那样,使用/usr/local/bin/R --slave -e而不是Rscript可以完美地工作。
发布于 2020-04-22 21:32:35
只是添加另一个用例,当R程序在不同的位置时,R工作区应该被忽略,并且输入是要处理的R文件。
/usr/bin/R --vanilla --slave -f "src/parallel.R"https://stackoverflow.com/questions/59594464
复制相似问题