在Mac上的R上运行软件包“rgl”和“geomorph”时出错

时间:2015-02-13 19:19:52

标签: r rgl

我正在尝试在R上运行包“geomorph”。我知道我需要安装包“rgl”和“geomorph”以及以下(分别)来执行此操作:

install.packages("rgl")

然后我:

require("rgl")

但是出现以下错误:

> 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

请帮忙。可能是因为我在OS X Yosemite上运行R?我读到Yosemite目前存在一个错误或功能,导致R用户出错。

0 个答案:

没有答案