在Mac OS X Yosemite 10.10.5上使用Rattle



我在mac上加载rattle有问题,我一直在下载X11,但似乎找不到一个工作页面。
当试图用简单的

调用rattle时
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吗?

XQuartz不是R包,而是Mac OS x的X11窗口系统的实现。您需要安装XQuartz才能使用R中的tcltk包,在Mac OS x下Rcmdr依赖于该包。

参见Mac OS x的Rcmdr安装说明。

我希望这有帮助,约翰。

相关内容

  • 没有找到相关文章

最新更新