当从PyDev中的Python脚本调用Rscript时,它不起作用。
下面是错误的代码:
os.system("Rscript --vanilla test.R")以及错误:
sh: Rscript: command not found发布于 2017-02-02 05:07:41
在mac上,该命令仅为system
> system("Rscript --vanilla test.R")
[1] " Your Name is and you are years old"(我的test.R (在我的工作目录中)是上一个问题遗留下来的。)Rscript应该在“常规”安装过程中从CRAN dmg的“通常”位置安装,就像你的和我的一样。
https://stackoverflow.com/questions/41988707
复制相似问题