【发布时间】:2018-04-06 10:46:21
【问题描述】:
我正在尝试安装 Rattle,但遇到了一些问题。下面是初始代码和结果。
install.packages('rattle', repo='https://cran.cnr.Berkeley.edu/')
also installing the dependency ‘RGtk2’
Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘RGtk2’
Do you want to attempt to install these from sources?
我试过了,它给我的错误是这样的
configure: error: GTK version 2.8.0 required
ERROR: configuration failed for package ‘RGtk2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/RGtk2’
Warning in install.packages :
installation of package ‘RGtk2’ had non-zero exit status
ERROR: dependency ‘RGtk2’ is not available for package ‘rattle’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rattle’
Warning in install.packages :
installation of package ‘rattle’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/47/39zt_y995czg2rgb3n485ty80000gn/T/Rtmpb8Eli0/downloaded_packages’
我也试过了,它给我的错误是这样的
ERROR: dependency ‘RGtk2’ is not available for package ‘rattle’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rattle’
Warning in install.packages :
installation of package ‘rattle’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/47/39zt_y995czg2rgb3n485ty80000gn/T/Rtmpb8Eli0/downloaded_packages’
会有人碰巧知道我哪里出错了吗?提前感谢您的任何意见。
【问题讨论】:
-
我已经写了一个简短的说明。希望对你有帮助:gist.github.com/zhiyzuo/a489ffdcc5da87f28f8589a55aa206dd
-
@Zhiya,在文档中安装后,我是否可以相应地访问 RStudio 中的拨浪鼓
-
@EB 我已经帮助一些人做到了这一点,其中一些人无法在 RStudio 中访问嘎嘎声,说 GTK+ 未初始化,但其他人可以,所以我不确定。您可以尝试打开 XQuartz,然后打开 RStudio 并运行嘎嘎声。
-
@Zhiya,我可以访问它并且它正在工作.. 但它有时比预期的要慢