Error in loading rgl package with Mac OS X

后端 未结 6 2106
鱼传尺愫
鱼传尺愫 2020-12-01 16:29

I am trying to install rgl package (0.92.858) for R (2.14.2) under Mac OS X (Lion 10.7.3). When I try to load it (library(rgl)), I get the following error:

          


        
6条回答
  •  没有蜡笔的小新
    2020-12-01 16:31

    Okay solution in my case (OS X Yosemite), first download the RGL source (not binaries) in http://cran.r-project.org/src/contrib/rgl_0.95.1247.tar.gz, extract it, and build the library using this command:
    R CMD INSTALL --disable-cocoa --x-includes=/usr/X11/ rgl
    and it works like a charm.

提交回复
热议问题