2.4 Installing Rattle on Linux

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 following apt command in a terminal at the shell prompt $:

sudo apt install r-cran-corrplot r-cran-hmisc r-cran-fbasics \
     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

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:

sudo apt install r-cran-ada 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

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 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(c('descr', 'naniar', 'rattle', 'verification'))

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 rattleng-dev-linux.zip. You can do this by tapping on that link or else from the terminal command line:

wget https://access.togaware.com/rattleng-dev-linux.zip -O rattleng-dev-linux.zip

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:

unzip rattleng-dev-linux.zip -d rattleng

Then run the executable:

rattleng/rattle


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