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
helloSwift OP 在 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 希望有点帮助吧😔 |