Rattle: Installation on GNU/Linux
See Ubuntu Install for specific instructions for a quick Ubuntu install.Quick Start
- Install R using your distribution's package manager (software market)
- Startup R and then > install.packages("rattle")
> library("rattle")
> rattle()
Dev Release
The latest development version is available directly from Togaware:> install.packages("rattle", repos="http://rattle.togaware.com")
Notes
Under Debian, Ubuntu, Red Hat and Suse both 32bit and 64bit variants are supported.Below we illustrate the installation on Ubuntu. See CRAN for details.
A common issue is the need to install the GTK development packages so that R can compile the required packages. On Ubuntu or Debian do this first:$ sudo apt-get install wajig $ wajig install libgtk2.0-dev libxml2-dev
Details
1. Install Latest R
We first add the appropriate CRAN repository to the Ubuntu list of repositories. From the command line (and we can also do this through the Software Centre GUI):
$ sudo gedit /etc/apt/sources.list natty
deb http://cran.rstudio.org/bin/linux/ubuntu saucy/
The archive is signed to ensure its integrity. We add the signature to our system:
$ gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 $ gpg -a --export E084DAB9 | sudo apt-key add -
We can then install the r-recommended and r-base-dev package, which will also pull in a number of other packages.
$ wajig update $ wajig install r-recommended r-base-dev
We install the dev version so we can install other packages from source.
This will install r-base-core_3.0.2-1saucy_amd64.deb [131223].
2. Install Rattle
We now install Rattle using R's package manager to do so. Open up a Terminal (from the Accessories menu under Applications) and start up R.
$ R
Then install the Rattle package:
> install.packages("rattle")We can then run Rattle:
> library(rattle) > rattle()
3. Optional Configuration and Installations
-
A launcher for Rattle can be set up using the command line:
sh -c 'R_DEFAULT_PACKAGES="rattle" R "$@"'
If this is being set up as a gnome launcher, be sure to start it up as an application in a terminal.
-
Above we added an entry into /etc/apt/sources.list for Ubuntu version 12.04, also known as Precise [120926]. Change the cran.rstuid.org to point to a closer mirror of the archive. The mirrors are listeod in http://cran.rstudio.org/mirrors.html. Also, change precise to one of lucid, maverick, natty, or oneiric [120926] to match you installation of Ubuntu. For a Debian install, add
deb http://cran.rstudio.org/bin/linux/debian squeeze-cran/
- You may like to install RStudio (version 0.93.76 is 23MB), a comprehensive development environment for interacting with R, from www.rstudio.org as rstudio-0.96.331-amd64.deb [120926].
-
An alternative to RStudio is Emacs Speaks S. Simply install
the appropriate Debian packages:
$ sudo apt-get install ess
-
We can force the install of other packages Rattle
uses. Without doing this, Rattle will notice these packages missing
when we try to use some functionality dependent on the package. In
this case Rattle will offer to install them. If we prefer, we can
install all dependent packages now, if, for example, we may not
always be connected to the Internet. We might need to restart R to
be able to reinstall Rattle in this way (if it is already loaded
into the running R session).
> install.packages("rattle", dep=c("Suggests"))
This does not always install all dependencies, and I've noticed a need to then install the following:> install.packages(c("ggplot2", "latticist", "playwith", "pROC", "ROCR"))
For trouble shooting see Rattle Install Trouble Shooting.
Copyright © 2006-2023 Togaware Pty Ltd
This site is hosted in the cloud by OpalStack.
Last Modified 2013-12-23 18:26:13 Graham Williams
Shop at Amazon