简体   繁体   English

R 软件包难以安装

[英]R packages struggling to install

I have written code to install the R package "Matlib" on my Rstudio on my mac but I keep getting the same error message and I do not know what the message means.我已经编写代码在我的 Mac 上安装 R package “Matlib”,但我一直收到相同的错误消息,但我不知道消息是什么。 错误消息的图像和我为安装和使用包而编写的代码

Apparently the new Macs don't support OpenGL, so one workaround for users of Rstudio has been suggested by rgl's author and maintainer, Duncan Murdoch.显然,新的 Mac 不支持 OpenGL,因此 rgl 的作者和维护者 Duncan Murdoch 建议了 Rstudio 用户的一种解决方法。 (This does require that you be prepared to install packages from source. Rstudio allows the use of rglwidget() for display. ) (这确实需要您准备从源代码安装软件包。Rstudio 允许使用rglwidget()进行显示。)

 install.packages("rgl", configure.args = "--disable-opengl", type = "source") 

The problem appears to be some sort of mismatch between OpenGL and XQuartz.问题似乎是 OpenGL 和 XQuartz 之间的某种不匹配。 Details can be found by reviewing post from Duncan on the R-SIG-Mac Mailing List.详细信息可以通过查看 Duncan 在 R-SIG-Mac 邮件列表上的帖子找到。 There was some dialog on the mailing list a month ago now that appeared to indicate that installing the most recent version of R and rgl might have solved it, so that might be a first step.一个月前邮件列表上有一些对话框,现在似乎表明安装最新版本的 R 和 rgl 可能已经解决了它,所以这可能是第一步。

You should learn to post the output of:应该学会张贴output的:

 sessionInfo()

... and use text, not pictures. ...并使用文字,而不是图片。 when presenting error reports on StackOverflow.在 StackOverflow 上显示错误报告时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM