这可是用R玩机器学习的利器。
安装rattle()包
> install.packages("rattle")
> library(rattle)
Rattle: A free graphical interface for data science with R.
XXXX 5.3.0 Copyright (c) 2006-2018 Togaware Pty Ltd.
键入'rattle()'去轻摇、晃动、翻滚你的数据。
rattle包作者你也太调皮啦😁
运行rattle()
安装RGtk2包
> rattle()
Error in rattle() :
The RGtk2 package is not available but is required.
Please install the package using, for example:
install.packages("RGtk2")
> install.packages(RGtk2)
Error in install.packages : object 'RGtk2' not found
> install.packages("RGtk2")
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/windows/contrib/3.6/RGtk2_2.20.36.zip'
Content type 'application/zip' length 16558916 bytes (15.8 MB)
downloaded 15.8 MB
package ‘RGtk2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\chang\AppData\Local\Temp\RtmpGibdaw\downloaded_packages
安装GTK
再次启动rattle()
> rattle()
Loading required package: RGtk2
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'E:/R-3.6.2/library/RGtk2/libs/x64/RGtk2.dll':
LoadLibrary failure: 找不到指定的模块。
我的机器里没有装GTK,不过不用费心。Rattle发现了这个问题,直接问我是否安装GTK
说实话,R这套包管理系统还真是省心。需要什么,用到的时候现装就行。