|
DATA MINING
Desktop Survival Guide by Graham Williams |
|
|||
|
Below is a detailed step-by-step guide for installing Rattle. Simpler instructions for installing Rattle are provided in previous sections for Ubuntu and Debian (Section A.0.2) and MS/Windows (Section A.0.3) and might be preferred to the more detailed discussion below.
For a particular operating system (e.g., GNU/Linux), be sure to follow the relevant instructions.
(Please note that I do not have access to a Macintosh and so the following comments come from users of Rattle and have not been personally tested. They are provided in the hope they may be useful.)
Debian: wajig install libglade2-0 |
MS/Windows: run gtk-dev-2.12.9-win32-2.exe |
source("http://www.ggobi.org/downloads/install.r")
|
Mac/OSX: install the latest version of the GTK+ library, including libglade, by downloading the gtk2-runtime.dmg package (under ``Other binaries'') from http://r.research.att.com/.
All Operating Systems: after installing GTK+ or any of the other libraries, be sure to restart the R console, if you have one running. This will ensure that R finds the newly installed libraries.
Debian: $ wajig install r-recommended |
MS/Windows: the binary distribution can be obtained from
the R ProjectA.8 website. Download the self-installing package and open it--the
install process will begin. Generally, accept all of the default
options that are offered in the installation process.
MS/Windows: run R-2.8.0-win32.exe |
Mac/OSX: download the package from CRAN or from http://r.research.att.com/ and install it.
All Operating Systems: to confirm you have installed R
start up a Terminal and enter the command R (that's just
the capital letter R). If the response is that the command is not
found, then R is not yet installed!
$ R R version 2.7.0 (2008-04-22) Copyright (C) 2008 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. [Previously saved workspace restored] > |
R: > install.packages("RGtk2")
|
R: > install.packages("RGtk2",repos="http://www.ggobi.org/r/")
|
Debain: $ wajig install r-cran-gtk2 |
All Operating Systems: to confirm you have RGtk2 installed
enter the following R command:
R: > library(RGtk2) |
To automatically get all of the packages suggested by Rattle (and
suggested by its dependencies in turn), use the
dependencies option. Otherwise list them all out in the
command (or even just list the ones we want for now):
R: > install.packages("rattle", dependencies=TRUE)
|
R: > install.packages(c("ada", "amap", "arules", "bitops",
"cairoDevice", "cba", "combinat", "doBy", "ellipse",
"fEcofin", "fCalendar", "fBasics", "fpc",
"gdata", "gtools", "gplots", "Hmisc", "kernlab",
"mice", "network", "pmml", "randomForest", "reshape",
"rggobi", "ROCR", "RODBC", "rpart", "RSvgDevice",
"XML"))
|
R: > install.packages("rattle")
|
R: > install.packages("rattle",
repos="http://rattle.togaware.com")
|
If these don't work for some reason you can also download the latest
version of the rattle package directly from
TogawareA.10. Download either
the .tar.gz file for GNU/Linux and Mac/OSX, or the
.zip file for MS/Windows. Install the package from within
R:
R: > install.packages("rattle_2.3.124.zip", repos=NULL)
|
Mac: R CMD INSTALL rattle_2.3.124.tar.gz |
rattle_2.3.124.tar.gz.tar |
R: > library(rattle) |
R: > rattle() |
When starting up Rattle the main window will be displayed. You will see a welcome message and a hint about using Rattle (see Figure A.1).
Copyright © 2004-2008 Togaware Pty Ltd Support further development through the purchase of the PDF version of the book.