最好升级 R 到最新版本,可加入如下的 deb 源。
deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu lucid/
需要 key:
$ gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
$ gpg -a --export E084DAB9 | sudo apt-key add -
$ sudo apt-get update
A common issue is the need to install the GTK development packages so that R can compile the required packages.
$ sudo apt-get install libgtk2.0-dev libxml2-dev
Then install the Rattle package
> install.packages("rattle")
启动
> library(rattle)
> rattle()
如若出现如下的错误
(R:4528): Gtk-WARNING **: Unknown property: GtkMenuBar.ubuntu-local
Error: attempt to apply non-function
In addition: Warning message:
In method(obj, ...) : Unknown internal child: selection
这样启动
> library(rattle)
> crv$rattleUI <- "rattle_macosx.ui"
> rattle()
根据提示,或许需要安装 XML 和 carioDevice 包,照做就是。
成功了 感恩
回复删除