`rgl`崩溃r 4.2.0在rstudio中

发布于 2025-01-24 20:54:32 字数 65 浏览 2 评论 0原文

如果在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尐籹人 2025-01-31 20:54:33

这是启动代码中的一个错误,该错误在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 starting rgl. 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 set options(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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文