Showing posts with label IDE for R. Show all posts
Showing posts with label IDE for R. Show all posts

Thursday, October 25, 2012

RStudio for Ubuntu 12.04

There are many editors to R, like JGR, Emacs + ESS, Rattle (for data mining), Tinn-R, but I personally like RStudio for many reasons. I shall explain about how to install R and RStudio in Ubuntu 12.04 here:


  1. First obtain a copy of RStudio from here.
  2. go to update manager -> settings -> add below apt sources:
        deb http:///bin/linux/ubuntu precise/
        if you are in India; possibly your favorite CRAN mirror can be: http://ftp.iitm.ac.in/cran/; for more mirror, you can peep in to this page.
3. go to terminal; alternatively you can also click ctl+alt+t, to trigger gnome-terminal; then add apt-key with the help of below commands;


gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9  
and  
gpg -a --export E084DAB9 | sudo apt-key add -
 
now update your software sources (respective repositories) with below commands;
 
sudo apt-get update 
sudo apt-get install r-base
now after installation - install your previously downloaded RStudio package with the
help of software center 
 
That's all now your RStudio (much coveted IDE for R) is ready.