在Mac OS X Yosemite上使用拨浪鼓10.10.5

时间:2015-09-03 02:45:53

标签: r xcode macos yosemite rattle

我在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) 

有关使用OS X Yosemite加载Rattle的任何帮助吗?

1 个答案:

答案 0 :(得分:0)

XQuartz不是R包,而是Mac OS X的X11窗口系统的实现。您需要安装XQuartz才能使用R中的 tcltk 包,其中 Rcmdr 取决于Mac OS X.

请参阅the Rcmdr installation notes for Mac OS X

我希望这有帮助,  约翰

相关问题