> library(rgl)
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: In fun(libname, pkgname) : error in rgl_init我还尝试了plot3d函数,得到了错误:
Error in rgl.open(useNULL) : rgl.open failed如何解决?
发布于 2015-09-18 04:43:43
您之前的问题表明您使用的是Ubuntu: rgl依赖于一些gl包才能运行。
您可能不知道的是:您可以将r-cran-rgl作为一个包安装
$ sudo apt-get install r-cran-rgl
这将安装所有必要的依赖项,并允许您只在R中加载包。首先从R运行remove.packages("rgl")可能会有所帮助,这样您就有了正确的版本。
https://stackoverflow.com/questions/32661422
复制相似问题