简体   繁体   中英

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. 错误消息的图像和我为安装和使用包而编写的代码

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. (This does require that you be prepared to install packages from source. Rstudio allows the use of rglwidget() for display. )

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

The problem appears to be some sort of mismatch between OpenGL and XQuartz. Details can be found by reviewing post from Duncan on the R-SIG-Mac Mailing List. 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.

You should learn to post the output of:

 sessionInfo()

... and use text, not pictures. when presenting error reports on StackOverflow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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