我最近在我的 Win 7 机器上升级到Architect 0.9.7 版。但是,在启动 Architect 后,RJ 控制台无法启动,并且我收到了错误消息:
‘Launching the R Console was cancelled, because It seems starting the R engine failed.”
Please make sure that R package 'rj' (2.0 or compatible) is installed and
that the R library paths are set correctly for the R environment
configuration 'Embedded R Server'.
我使用www.walware.de上建议的命令在 Architect 中通过 RTerm 运行控制台(确实可以工作)安装了包 'rj' 和 'rj.gd' :
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-2.0")
然后,我重新启动了 Windows,并重新启动了 Architect。相同的错误信息。我放大了错误消息的详细信息,并注意到以下行:
SEVERE: Path to rj package not found. Use R_LIBS or java property
'de.walware.rj.rpkg.path' to specify the location.
所以我打开了一个 RTerm 运行控制台来检查我的任何 .libPaths() 位置是否包含目录“rj”或“rj.gd”。奇怪的是,他们确实如此。我的第一个 .libPaths 路径包含两个包。所以这似乎不是原因。这怎么可能解决?