在eclipse中的Statet没有找到rj包

时间:2014-12-01 13:01:03

标签: eclipse r statet

我不能让Eclipse,Statet和R一起工作。我启动R时收到错误:

  

启动R控制台已取消,因为它似乎启动R引擎失败。   请确保已安装R软件包'rj'(2.0或兼容),并且R库路径已针对R环境配置'R test'正确设置。

我安装了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

我确保库路径是正确的。我有点不知所措,如何继续。

感谢您的帮助。

了Christoph

2 个答案:

答案 0 :(得分:4)

虽然在R环境配置中进行挖掘(运行 - >运行配置... - &gt; R config - &gt;配置),但我尝试了一些有效的方法: 而不是在&#34; R_LIBS_USER&#34;下指定用户库链接,在&#34; R_LIBS_SITE&#34;下添加一个条目。

之后工作正常。

(我会包括视觉指针,但没有代表)

答案 1 :(得分:0)

我将R_LIBS_USER设置为R环境中的/ library /文件夹,它运行正常。

enter image description here