当前位置: 动力学知识库 > 问答 > 编程问答 >

r - Cannot run program "Rscript" in eclipse, but can run it through terminal

问题描述:

Mac OSX 10.7.5, can run Rscript in terminal:

Mac-mini lenskit-demo$ rscript --version

R scripting front-end version 3.0.1 (2013-05-16)

But can`t run it through 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

Please, someone can tell me How to solve this?

网友答案:

There is a cross-platform bolt-on package for eclipse to use with R:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: