Yes I know why 12.10? Well I am lazy to upgrade but also for the fact that the newer versions of Ubuntu haven't exactly set the world on fire. Anyways why am I writing this post? Its pretty easy to install R but R studio? Well R studio wasn't willing to get installed on my PC after downloading the package.
For the uninitiated R studio is a IDE for R and its pretty useful GUI.
So how did I manage to install R and R studio? Lets get over with some basic commands to install/update R.
To obtain the latest R packages, add an entry like
or
by the actual URL of your favorite CRAN mirror. See http://cran.r-project.org/mirrors.html for the list of CRAN mirrors.
To install the complete R system, use
For the uninitiated R studio is a IDE for R and its pretty useful GUI.
So how did I manage to install R and R studio? Lets get over with some basic commands to install/update R.
To obtain the latest R packages, add an entry like
sudo add-apt-repository "deb http:///bin/linux/ubuntu saucy/"
or
sudo add-apt-repository "deb http:///bin/linux/ubuntu raring/"
or
sudo add-apt-repository "deb http:///bin/linux/ubuntu quantal/"
or
sudo add-apt-repository "deb http:///bin/linux/ubuntu precise/"
or
sudo add-apt-repository "deb http:///bin/linux/ubuntu lucid/"
But don't forget to replace
To install the complete R system, use
sudo apt-get update sudo apt-get install r-base
Then Install gdebi which checks for dependencies
sudo apt-get install gdebi
Adding RStudio
Download R studio
http://www.rstudio.com/ide/download/
After downloading R studio package run the following command
sudo gdebi
Well ideally no errors should come up and you can find R studio installed and ready to fireup.