不能在eclipse中运行程序“Rscript”,但可以通过终端运行它

时间:2013-09-16 15:21:15

标签: eclipse r maven

Mac OSX 10.7.5,可以在终端运行Rscript:

Mac-mini lenskit-demo$ rscript --version
R scripting front-end version 3.0.1 (2013-05-16)

但是不能通过eclipse运行它:

[INFO] 22:28:16.672 o.g.l.eval.EvalTarget: beginning execution of analyze
[INFO] 22:28:16.672 o.g.l.eval.EvalProject: running task exec
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:26.859s
[INFO] Finished at: Mon Sep 16 22:28:17 CST 2013
[INFO] Final Memory: 8M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.grouplens.lenskit:lenskit-eval-maven-plugin:2.0-M1:run-eval (default-run-eval) on project lenskit-demo: Execution default-run-eval of goal org.grouplens.lenskit:lenskit-eval-maven-plugin:2.0-M1:run-eval failed: Execute failed: java.io.IOException: Cannot run program "Rscript": error=2, No such file or directory -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

拜托,有人可以告诉我如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

有一个用于eclipse的跨平台螺栓固定包用于R:

https://r-forge.r-project.org/projects/statet/

相关问题