Error running the packages “rgl' and ”geomorph" on R on Mac

自古美人都是妖i 提交于 2019-12-10 13:35:17

问题


I am trying to run the package "geomorph" on R. I know I need to install the packages "rgl' and "geomorph" and the following (respectively) to do so:

install.packages("rgl")

Then I:

require("rgl")

But for both the following error appeared:

> require("rgl")
Loading required package: rgl
Error : .onLoad failed in loadNamespace() for 'rgl', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rgl/libs/rgl.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rgl/libs/rgl.so
  Reason: image not found

Please help. Could it be that that I am running R on an OS X Yosemite? I read that there is currently a bug or feature in Yosemite that is causing errors for R users.

来源:https://stackoverflow.com/questions/28507111/error-running-the-packages-rgl-and-geomorph-on-r-on-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!