Introduction

Rattle (the R Analytical Tool To Learn Easily)  is a freely available and open source graphical user interface for Data Mining Using R, it holds use of over 100 R packages that provide most needed algorithms for the Data Scientist.

Rattle provides Gnome (RGtk2) based interface to R functionality for Data Mining.The aim to provide simple and intutive interface that allows end users to quickly load data in the form of csv files(or even ODBC), transform and explore data, evalute models in their own way .Rattle also allows user to export models as PMML(Predictive Modelling Markup Language ).

A very important feature of Rattle is that all functionality accessed via graphical user interface are captured as a structured R script which can be run indepently of Rattle whenever required.

RATTLE_PLOT2

RATTLE_EG2_PLOT

Installation

You can always latest beta versions are always available from within R console:

>install.packages("rattle", repos="http://rattle.togaware.com", type="source") 

Here I am going to detail how to install Rattle package from R studio
1. Open Rstudio

2.Go to menu View on the menu bar and select Show Packages

Rstudio_View

3)Then go to packages and then click on install button

Rstudio_package

4)On clicking on Install a small window will open

(i)Install from:Repository(CRAN)

(ii)Packages : rattle

(iii)Install to Library:(leave it to default setting)

(iv)Tick install dependencies and hit on Install

Rattle_Install_packges

5)Again go to Packages and Search for rattle and put a tick in front of it.

rattle_tick

6)Type rattle() on the R console and hit enter

Now in R console all the dependencies needed will be shown and install them accordingly

example :Rgtk2 package

After peforming above steps you will see the following window of rattle asking for some dependencies to download

rattle

Some of the following dependencies rattle will suggest you to install through the dialogue box

Download all dependencies for full fledged usage of Rattle .If some error persist then use command line method to install dependencies.

for example:

cairoDevice

XML

cairoDevice

Here I have shown installation of XML package through command line .

If there is error while downloading through the dialogue box ,then use command line procedure . This procedure is applicable for all dependencies.

Use the following command to download dependencies in case it do not happen with dialogue box

->install.packages(‘XML’)

If there comes an error such as following:
ERROR:
configuration failed for package ‘XML’
* removing
‘/home/farheen/R/x86_64-pc-linux-gnu-library/3.1/XML’
Warning in install.packages :
installation of package ‘XML’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmpw8S1UE/downloaded_packages’
Error in loadNamespace(name) : there is no package called ‘XML

this indicates you don’t have xml libraries to install,so first run these commands on terminal

->sudo apt-get install libcurl4-openssl-dev

->sudo apt-get install libxml2-dev

And then go back to R console and run the command again

install.packages(‘XML’)

Type rattle() in the R console and following window will appear.

rattle

We have finally installed rattle with all the dependencies.


 

 
 
Advertisements