Installing Rattle and | Analytics Training http://www.learnanalytics.in/blog/?p=31

Your own time, your own pace

Posted on December 20, 2011

lick To Begin 2. Download App 3. Increase Download Speed & Enjoy!

The halo around R continues to grow and grow, more and more organizations are now beginning to explore building capabilities in R programming as it can potentially deliver costs savings. More on the comparison of R and SAS in our earlier blog entry.

In this post we will take you through installation of R and Rattle on a Windows 7 machine. Here is a youtube video showing the capabilities of R on a small credit scoring dataset.

1. Download R from the website. The link provides for Windows installation, the setup file for both 32 bit and 64 bit systems is the same, so you need not worry. 2. The setup file is an executable, simply run it and follow the instructions, it should install the basic R software on your system. 3. There should be an icon created on your desktop, in 64 bit systems two icons get created (one for normal 32 bit, the other for 64 bit). If you have a 64 bit system, double click on the Rx64 2.XX icon, where XX is the version number) 4. The following window should open up

1 of 5 5/19/2015 5:01 PM Installing Rattle and R | Analytics Training http://www.learnanalytics.in/blog/?p=31

type in the following commands one after the other, press enter after each statement install.packages(“RGtk2″) & install.packages(“rattle”). After the first command, a window will open up asking for a CRAN mirror to be selected as below, You can select any CRAN mirror to download the packages from (to be safe, select any US or western Europe mirror to ensure latest versions) 5. Run the following commands now » library(rattle) followed by rattle() 6. This is where most errors regarding rattle installation pop up, in a lot of cases R will thrown an error such as GTK not found or error with GTK+ and it will offer to download GTK for you. But even that option after download will not work. Fear not, follow the instructions below to resolve, if your Rattle window launches, congratulations, its working 7. For those with GTK problems follow the below bullet point steps

32 Bit systems open this link, 64 bit systems open this link. On the page scroll down to GTK+ packages and select GTK+ Version 2.24.8 (32 bit Runtime); GTK+ Version 2.22.1 (64 bit- Binaries) Copy it to the C drive root and extract the ZIP files as they are. For e.g. I create a folder C:\+_2.22.1-1_win64 Now Right click on My Computer and then click on Properties (Alternatively you can go via Control Panel >System & Security>System), a new window will open up, on the left hand side click on “Advanced system settings” A new window as below will open up

Click on Environment Variables near the bottom, a new window will again pop up, within the system variables selection, scroll down to path and click on edit. An “Edit System Variable” window will open up with variable name “Path”, within variable values you will see a number of Folder paths separated by a semi colon.

2 of 5 5/19/2015 5:01 PM Installing Rattle and R | Analytics Training http://www.learnanalytics.in/blog/?p=31

Within the variable values go the beginning and add a path to the GTK folder we had extracted to the Bin folder, for e.g. C:\gtk+_2.22.1-1_win64\bin followed by a semi colon. (Note: make sure your path actually exists in the folder you have extracted into, i.e. the bin folder) Close all and restart the R software Type in library(rattle), press enter followed by rattle() The rattle window should now open up, you are now ready to shake, rattle and roll your data. Install all packages which Rattle prompts you to, it will be done automatically after you press ok. Check out our Rattle demonstration post for a flavor of what Rattle can do.

Do let us know if the post was helpful in solving your Rattle installation issues, especially the pesky GTK/RGTK2 error. Feel free to comment even if you still face installation issues, we will try and solve them!

LearnAnalytics Team.

This entry was posted in Advanced Analytics, R Training, Training, Uncategorized and tagged GTK error, installation, R Training, Rattle, RGTK2 by admin. Bookmark the permalink [http://www.learnanalytics.in /blog/?p=31] .

Comments

7 THOUGHTS ON “INSTALLING RATTLE AND R”

X on November 28, 2013 at 2:29 pm said:

I’ve the same problem of gtk+ ,but i solve it . I advise u before ansstalling r rattle to download the gtk+ library from the link http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+- bundle_2.24.10-20120208_win32.zip Then configure the variables envirenement like in the tutorial , After install r rattle and start taping the instructions monsioned in this tutorial. Thanks for all

ankit jain on October 26, 2013 at 12:19 pm said:

I followed above steps but still not able to get started with rattle. I

3 of 5 5/19/2015 5:01 PM Installing Rattle and R | Analytics Training http://www.learnanalytics.in/blog/?p=31

updated the path also but R shows same error message. It keeps on downloading and fails to extract files. Permission denied error. Exdir msg. How do i resolve that. Please advise.

Anonymous on March 18, 2013 at 11:23 pm said:

I am using R 2.14.1 and get the following:

Error in configureGUI() : could not find function “paste0″ In addition: Warning messages: 1: package ‘RGtk2’ was built under R version 2.14.2 2: package ‘colorspace’ was built under R version 2.14.2 Cannot get rattle to do anything

shaik on December 12, 2012 at 12:11 pm said:

i am using win7 OS i installed rattle. i am able to see the rattle GUI but when i give a csv file and click execte its not working it npt displying any error… how to run rattle.

mahesh pal on March 16, 2012 at 9:37 am said:

I have installed R-2.14.2, rattle_2.6.17, RGtk2_2.20.21 and gtk+-bundle_2.24.8-20111122_win32 to run rattle on my wndow (XP). While starting rattle I got following message “the procedure entry point deflatesetheader could not be located in the dynamic link library zlib1.dll”

may I know the problem as I am totally new to R.

4 of 5 5/19/2015 5:01 PM Installing Rattle and R | Analytics Training http://www.learnanalytics.in/blog/?p=31

Mukul on February 18, 2012 at 10:31 am said:

Thank you! This was very helpful!

Anonymous on December 20, 2011 at 4:58 pm said:

Very useful

5 of 5 5/19/2015 5:01 PM