helloSwift
V2EX  ›  问与答

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

  •  
  •   helloSwift · Jul 17, 2017 · 1701 views
    This topic created in 3260 days ago, the information mentioned may be changed or developed.

    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 replies    2017-07-17 11:06:52 +08:00
    helloSwift
        1
    helloSwift  
    OP
       Jul 17, 2017
    在 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

    希望有点帮助吧😔
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2464 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:54 · PVG 13:54 · LAX 22:54 · JFK 01:54
    ♥ Do have faith in what you're doing.