【问题标题】:Using Rattle on Mac OS X Yosemite 10.10.5在 Mac OS X Yosemite 10.10.5 上使用 Rattle
【发布时间】:2015-11-28 17:30:29
【问题描述】:

我在我的 Mac 上加载 Rattle 时遇到问题,我一直被要求下载 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 的任何帮助吗?

【问题讨论】:

    标签: r xcode macos osx-yosemite rattle


    【解决方案1】:

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

    the Rcmdr installation notes for Mac OS X

    我希望这会有所帮助, 约翰

    【讨论】:

    • 好的,谢谢!下载 XQuartz 的站点在此期间关闭,一旦备份,一切运行顺利。
    猜你喜欢
    • 1970-01-01
    • 2023-03-18
    • 1970-01-01
    • 1970-01-01
    • 2019-06-06
    • 2015-12-16
    • 1970-01-01
    • 2015-12-23
    • 1970-01-01
    相关资源
    最近更新 更多