`rgl`崩溃r 4.2.0在rstudio中
如果在rstudio中加载rgl
软件包时,R版本4.2.0的新版本将崩溃。我该怎么办?
The new release of R version 4.2.0 will crash when loading the rgl
package if in RStudio. What can I do about it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是启动代码中的一个错误,该错误在0.100.50中引入并在版本0.108.3.2中固定。如果您使用的是具有错误的版本,则解决方法是在开始
options(rgl.debug = true)
启动rgl
之前。例如,您可以将该行放入.rprofile
中。背景是一些UNIX系统在启动上打印虚假错误消息,因此
rgl
将其引向NUL设备。如果您想查看它们,则可以设置options(rgl.debug = true)
。但是,新的是NUL设备有时无法在Windows中打开。rgl
没有检查它,但现在确实如此。请参阅 https://github.com/rstudio/rstudio/rstudio/rstudio/rstudio/issues/issues/11043 讨论。
This is a bug in the startup code that was introduced in 0.100.50 and fixed in release 0.108.3.2. If you're using a version that has the bug, a workaround is to run
options(rgl.debug = TRUE)
before startingrgl
. For example, you could put that line in your.Rprofile
.The background was that some Unix systems print spurious error messages on startup, so
rgl
directed those to the nul device. If you wanted to see them, you could setoptions(rgl.debug = TRUE)
. But what's new is that the nul device sometimes fails to open in Windows.rgl
wasn't checking for that, but now it does.See https://github.com/rstudio/rstudio/issues/11043 for more discussion.