【问题标题】:Statet in eclipse does not find the rj packageeclipse中statet找不到rj包
【发布时间】:2014-12-01 13:01:03
【问题描述】:

我无法让 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

我确保库路径正确。我有点茫然,如何进行。

感谢您的帮助。

克里斯托夫

【问题讨论】:

    标签: eclipse r statet


    【解决方案1】:

    在研究 R 环境配置(运行 -> 运行配置... -> R 配置 -> 配置)时,我尝试了一些可行的方法: 不要在“R_LIBS_USER”下指定用户库链接,而是在“R_LIBS_SITE”下添加一个条目。

    之后就可以正常使用了。

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

    【讨论】:

    • 您为 R_LIBS_USER 添加的值是多少?
    • @WarrenP(在我得到一台新机器并努力重新设置 StatET 的一年内,对于我自己来说可能已经足够了):使用 R 安装其软件包的目录,对我来说目前是 @987654321 @.
    • 所以你不能发布截图,因为你只有 46 个代表?把imgur链接发给我,我会贴出来的。
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-09
      • 2023-03-03
      • 1970-01-01
      • 2019-02-20
      • 1970-01-01
      相关资源
      最近更新 更多