我无法让 Eclipse、Statet 和 R 一起工作。启动 R 时收到错误消息:
启动 R 控制台已取消,因为启动 R 引擎似乎失败。请确保已安装 R 包“rj”(2.0 或兼容),并且为 R 环境配置“R test”正确设置了 R 库路径。
我已经安装了 Eclipse Luna(64 位)、Statet、Java 1.8.0_25(64 位)和 R 3.1.2(64 位)。我在 Windows 7(64 位)上运行。根据需要,我使用以下方法安装了包“rj”和“rj.gd”:
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-2.0")
它安装得很好:
packageDescription("rj")
Encoding: UTF-8
Package: rj
Version: 2.0.2-1
Title: RJ - R Package for high-level Java-R library RJ
Author: Stephan Wahlbrink, Tobias Verbeke, low-level R binding based on the JRI library by Simon Urbanek
Maintainer: Stephan Wahlbrink <stephan.wahlbrink@walware.de>
Depends: R (>= 2.11.0)
Suggests: rj.gd
SystemRequirements: java
Description: Server implementation and R functions for the high-level Java-R library RJ. The package also includes callback functions for StatET. It is shipped with an adapted version of the JRI library. The package can be used only when R was loaded via RJ.
License: LGPL (>= 2.1)
URL: http://www.walware.de/goto/opensource
Packaged: 2014-07-11 15:43:15 UTC; build
Built: R 3.1.1; x86_64-w64-mingw32; 2014-07-11 15:47:59 UTC; windows
-- File: c:/~/R/win-library/3.1/rj/Meta/package.rds
我确保库路径正确。我有点茫然,如何进行。
谢谢您的帮助。
克里斯托夫