使用 StatET 时,信息显示在浏览器中,而不是 "R Help" 窗格中
Information shows in browser, not "R Help" pane, when using StatET
我正在使用 Eclipse 2018-09 和 StatET 3.6.1。我有两个 R 环境:一个用于 R 3.3.2,另一个用于 R 3.5.1。当我执行像 ?lm
这样的命令来调用 v3.3.2 中的帮助页面时,该页面出现在 StatET "R Help" 窗格中,正如我所希望的那样。但是当我在 v3.5.1 中执行相同的命令来调用帮助页面时,控制台告诉我 "starting httpd help server," 并且帮助页面加载到我的浏览器中。使用 v3.5.1 时,如何获得有关在 "R Help" 窗格中加载的帮助?
无论我是否运行 Eclipse 作为管理员,以及我是否在启动时"Auto Run" R 3.5.1,都会出现问题。据我所知,两个版本的 R 的配置几乎相同:
- 两者都是 运行ning Windows 10 和 JRE 1.8。0_121。
- 两者都带有
rj
包的 2.1 版。
- 对于两者,我都选中了 "Run Configurations > R Console > R Console > Eclipse Integration," 中的每个框,包括 "Enable R Help for StatET."
- 对于两者,
options("help_type") == 'html'
。
检查我在两个版本的 R 中使用 Auto 运行 时获得的不同日志文件表明存在某种与 Derby 相关的 StatET 配置问题。这些消息仅在我启动 R 3.5.1 时出现:
!ENTRY de.walware.statet.r.core 4 -1 2018-11-16 02:50:29.092
!MESSAGE An error occurred when initializing DB for model.
!STACK 1
org.eclipse.core.runtime.CoreException: An error occurred when loading embedded DB (Derby + DBCP)
DB ConnectionURL=[path redacted]\eclipse-workspace\.metadata\.plugins\de.walware.statet.r.core\db
[...]
Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database C:\[path redacted]\eclipse-workspace\.metadata\.plugins\de.walware.statet.r.core\db.
[...]
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database C:\[path redacted]\eclipse-workspace\.metadata\.plugins\de.walware.statet.r.core\db.
但我不知道这个问题是怎么回事,也不知道如何解决。
StatET 的创建者 Stephan Wahlbrink 在启动时推荐运行此命令:
registerS3method("print", "help_files_with_topic", rj::print.help_files_with_topic)
我运行命令,它解决了问题。
(斯蒂芬补充说,我在日志中看到的 Derby 错误与 "R Help" 窗格中显示帮助的问题无关。)
我正在使用 Eclipse 2018-09 和 StatET 3.6.1。我有两个 R 环境:一个用于 R 3.3.2,另一个用于 R 3.5.1。当我执行像 ?lm
这样的命令来调用 v3.3.2 中的帮助页面时,该页面出现在 StatET "R Help" 窗格中,正如我所希望的那样。但是当我在 v3.5.1 中执行相同的命令来调用帮助页面时,控制台告诉我 "starting httpd help server," 并且帮助页面加载到我的浏览器中。使用 v3.5.1 时,如何获得有关在 "R Help" 窗格中加载的帮助?
无论我是否运行 Eclipse 作为管理员,以及我是否在启动时"Auto Run" R 3.5.1,都会出现问题。据我所知,两个版本的 R 的配置几乎相同:
- 两者都是 运行ning Windows 10 和 JRE 1.8。0_121。
- 两者都带有
rj
包的 2.1 版。 - 对于两者,我都选中了 "Run Configurations > R Console > R Console > Eclipse Integration," 中的每个框,包括 "Enable R Help for StatET."
- 对于两者,
options("help_type") == 'html'
。
检查我在两个版本的 R 中使用 Auto 运行 时获得的不同日志文件表明存在某种与 Derby 相关的 StatET 配置问题。这些消息仅在我启动 R 3.5.1 时出现:
!ENTRY de.walware.statet.r.core 4 -1 2018-11-16 02:50:29.092
!MESSAGE An error occurred when initializing DB for model.
!STACK 1
org.eclipse.core.runtime.CoreException: An error occurred when loading embedded DB (Derby + DBCP)
DB ConnectionURL=[path redacted]\eclipse-workspace\.metadata\.plugins\de.walware.statet.r.core\db
[...]
Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database C:\[path redacted]\eclipse-workspace\.metadata\.plugins\de.walware.statet.r.core\db.
[...]
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database C:\[path redacted]\eclipse-workspace\.metadata\.plugins\de.walware.statet.r.core\db.
但我不知道这个问题是怎么回事,也不知道如何解决。
StatET 的创建者 Stephan Wahlbrink 在启动时推荐运行此命令:
registerS3method("print", "help_files_with_topic", rj::print.help_files_with_topic)
我运行命令,它解决了问题。
(斯蒂芬补充说,我在日志中看到的 Derby 错误与 "R Help" 窗格中显示帮助的问题无关。)