我正在运行R 3.5.2的原始副本:
> version
_
platform x86_64-apple-darwin18.2.0
arch x86_64
os darwin18.2.0
system x86_64, darwin18.2.0
status
major 3
minor 5.2
year 2018
month 12
day 20
svn rev 75870
language R
version.string R version 3.5.2 (2018-12-20)
nickname Eggshell Igloo
R是通过Homebrew安装的:
$ brew --version
Homebrew 1.9.2
Homebrew/homebrew-core (git revision de1ec; last commit 2019-01-15)
Homebrew/homebrew-cask (git revision 68a73e; last commit 2019-01-14)
我正在尝试从XQuartz 2.7.11和rgl
应用程序中安装xterm
软件包,但出现以下错误:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/local/lib/R/3.5/site-library/rgl/libs/rgl.so':
dlopen(/usr/local/lib/R/3.5/site-library/rgl/libs/rgl.so, 6): Library not loaded: @rpath/libc++.1.dylib
Referenced from: /usr/local/lib/R/3.5/site-library/rgl/libs/rgl.so
Reason: image not found
Error: package or namespace load failed for 'rgl':
.onLoad failed in loadNamespace() for 'rgl', details:
call: NULL
error: Loading rgl's DLL failed.
On MacOS, rgl depends on XQuartz, which you can download from xquartz.org.
下面是一个屏幕快照,用于确认我正在XQuartz xterm
应用程序中尝试安装:
配置Mac OS X 10.14和XQuartz 2.7.11是否需要其他步骤,以允许安装rgl
?