DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
Rattle is distributed as an R package and is available from http://cran.r-project.org/CRAN, the Comprehensive R Archive Network. The latest version is also available as an R package from http://rattle.togaware.comTogaware. The source code is freely available from http://code.google.com/p/rattle/Google Code, where it is also possible to join the Rattle users mailing list.
The first step in installing Rattle is to install the GTK+ libraries, which provide the Gnome user interface. We need to install the correct package for our operating system. This installation is independent of the installation of R itself and is emphasised as a preliminary step that is often overlooked when installing Rattle.2.1
If you are new to R there are then just a few steps to get up and running with Rattle. If you are running on a Macintosh, be sure to run R from inside X11 (off the XCode CD) using the X11 shell to start R, as native Mac GTK+ is not fully supported. (Also, you need to use gcc 4.0.3, rather than the Mac's 4.0.1.) Be sure to install the glade libraries before installing RGtk2, since RGtk2 will ignore libraries that it can't find at the time of installation (e.g., you may find that newGladeXML is undefined).
Debian: wajig install libglade2-0 |
MS/Windows: run gtk-win32-devel-2.8.10-rc1.exe |
source("http://www.ggobi.org/download/install.r") |
Mac/OSX: $ sudo port install gtk2 Mac/OSX: $ sudo port install libglade2 |
For All installations, after installing libglade or any of the other libraries, be sure to restart the R console, if you have one running. This will ensure R can find the newly installed libraries.
Debian: $ wajig install r-recommended |
MS/Windows: run R-2.4.0-win32.exe |
$ R R version 2.4.1 (2006-12-18) Copyright (C) 2006 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > |
R: > install.packages("RGtk2") |
R: > install.packages("RGtk2",repos="http://www.ggobi.org/r/") |
Debain: $ wajig install r-cran-gtk2 |
Mac/OSX: $ R CMD INSTALL RGtk2_2.8.6.tar.gz |
For All installations, to test whether you have RGtk2
installed enter the R command
R: > library(RGtk2) |
R: > install.packages(c("ada", "arules", "bitops", "cba", "combinat", "doBy", "ellipse", "fBasics", "fpc", "gdata", "gplots", "gtools", "Hmisc", "kernlab", "MASS", "network", "randomForest", "rggobi", "RODBC", "ROCR", "rpart", "XML")) |
R: > install.packages("rattle") |
R: > install.packages("rattle", repos="http://rattle.togaware.com") |
You can also download the rattle package directly from
http://rattle.togaware.com. Download either the
.tar.gz file for GNU/Linux and Mac/OSX, or the
.zip file for MS/Windows, and then install with, for
example:
R: > install.packages("rattle_2.2.10.zip", repos=NULL) |
Mac: R CMD INSTALL rattle_2.2.10.tar.gz |
R: > library(rattle) |
R: > rattle() |
The main Rattle window will be displayed. You will see a welcoming message and a hint about using Rattle.
Copyright © 2004-2006 Graham.Williams@togaware.com Support further development through the purchase of the PDF version of the book.