V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
helloSwift
V2EX  ›  问与答

怎么在 Mac 上安装 R 语言的 Rattle 包 _(:з」∠)_

  •  
  •   helloSwift · 2017-07-17 10:39:51 +08:00 · 1273 次点击
    这是一个创建于 2488 天前的主题,其中的信息可能已经有所发展或是发生改变。

    macOS 10.12.5

    XQuartz 和 gtk+都安装了



    install.packages("RGtk2", dependencies = T, type = 'mac.binary.mavericks')

    提示 程序包‘ RGtk2 ’是源码包,但不是二进制包



    install.packages("RGtk2", dependencies = T, type = 'source')



    install.packages("rattle", dependencies = T)

    参考的链接:

    https://www.zhihu.com/question/28944497

    https://stackoverflow.com/questions/36042749/error-installing-rattle-package-in-mac

    1 条回复    2017-07-17 11:06:52 +08:00
    helloSwift
        1
    helloSwift  
    OP
       2017-07-17 11:06:52 +08:00
    在 rattle 那里,有说道:

    > The release of R 3.0.0 in April 2013 seems to be causing grief to a number of users on Mac OS/X. The problem seems to be with the installation of RGtk2 which the Rattle GUI depends on. The key is to make sure the RGtk2 package can be installed and loaded

    https://rattle.togaware.com/rattle-install-troubleshooting.html


    在 GitHub 上看到:

    > From the R command line (e.g. in R-Studio), install the RGtk2 package by running: install.packages("RGtk2", depen=T)
    This might fail with the warning that package ‘ RGtk2 ’ is not available (for R version xxx) depending on your version of R. If so, you can try to run install.packages("RGtk2", depen=T, type="source") instead to install the RGtk2 package from source (this might take a few minutes and ask you to install the Xcode command line tools - just hit Install and follow the instructions if you get this message, then rerun install.packages("RGtk2", depen=T, type="source")). If installation from source fails, you can try a slighlty older R version that has the binaries or check out the work-around below.

    https://gist.github.com/sebkopf/9405675


    还有参看这个 https://stackoverflow.com/questions/15868860/r-3-0-and-gtk-rgtk2-error

    希望有点帮助吧😔
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5638 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:52 · PVG 14:52 · LAX 23:52 · JFK 02:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.