我在我的 Mac 上加载拨浪鼓时遇到问题,我一直被推着下载 X11,但似乎找不到工作页面。
当试图用简单的方式调用拨浪鼓时
library(rattle)
它有一个关于 X11 的弹出窗口,并继续为您带来此链接https://support.apple.com/en-us/HT201341。
我在尝试使用 Rcmdr 解决方法时得到了这个
library(Rcmdr)
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.2/Resources/library/tcltk/libs/tcltk.so
Reason: image not found
In addition: Warning message:
running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1
Error: package or namespace load failed for ‘Rcmdr’
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
library(Rcmdr)
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: X11 library is missing: install XQuartz from xquartz.macosforge.org
Error: package or namespace load failed for ‘Rcmdr’
install.packages("XQuartz")
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘XQuartz’ is not available (for R version 3.2.1)
install.packages("tcltk")
Warning message:
package ‘tcltk’ is not available (for R version 3.2.1)
这里有关于让 Rattle 加载 OS X Yosemite 的任何帮助吗?