2.4 Installing Rattle on Linux

Quick Start

  1. Install the base Ubuntu R packages
sudo apt install r-cran-amap r-cran-corrplot r-cran-hmisc r-cran-fbasics \
     r-cren-ggdendro r-cran-ggthemes r-cran-lubridate \
     r-cran-magrittr r-cran-mice r-cran-nnet \
     r-cran-party r-cran-randomforest r-cran-readr \
     r-cran-reshape r-cran-rpart r-cran-skimr r-cran-tidyverse \
     r-cran-tm r-cran-vim r-cran-wordcloud
  1. Install the R2U Ubuntu R packages
sudo apt install r-cran-ada r-cran-arules r-cran-arules-viz \
     r-cran-biclust r-cran-ckmeans.1d.dp \
     r-cran-descr r-cran-janitor c-cran-naniar \
     r-cran-neuralnet r-cran-neuralnettools r-cran-rattle \
     r-cran-verification r-cran-wskm r-cran-xgboost
  1. wget https://access.togaware.com/rattle-dev-linux.zip -O rattle-dev-linux.zip
  2. unzip rattle-dev-linux.zip -d rattle
  3. ./rattle/rattle

Details

To install Rattle on Linux we first need to ensure we have R installed as discussed in Section 2.1.

Then we need to install the requisite R packages for the operating system. To do so we can use the above apt command in a terminal at the shell prompt $.

If you have installed the R2U repository for Ubuntu as described in Section 2.2 then you can also install the required packages from the full CRAN repository as with the second apt shell command above.

If you don’t have admin access as required for the above commands then you can run the R install.packages command from Section 2.3 to install the packages into your account.

As a user it is also recommended to install the rattle package manually before running rattle so that rattle itself can install any missing R packages into the local user’s folder. To do so, run the R from a terminal at the $ prompt and enter the following command at the R prompt >:

install.packages('rattle')

Once that finishes (after you have possibly been asked to create a personal library for your R packages), type q() at the R prompt (and choose n when asked to save the workspace image).

You are then ready to install the Rattle software. Begin by downloading the rattle-dev-linux.zip. You can do this by tapping on that link or else from the terminal command line using wget as above.

This version was compiled on Ubuntu 20.04 and is known to run on Ubuntu 22.04, Ubuntu 24.04, and Mint 21.3.

Then try it out by unzipping the zip archive locally, after downloading it, then run the executable.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0