After having some problems to install new version of R from command line on Ubuntu (straightforward way just updated it to version 2.15.x)
I want to share the way to do this.
If you want to update to the latest version of RStudio, hover over “Help” on the top menu bar of your Mac, and click “Check for Updates”. Then, quit the RStudio program, go to the RStudio website, and download and install the latest version. Now you should have the latest versions of R and RStudio on your computer.
The easiest way to update R is to simply download the newest version. Install that, and it will overwrite your current version. There are also packages to do the updating: updateR for Mac, and installr for Windows.
On windows, different version of R get installed on its own folder so you can choose which one to use, although you can't use two versions simultaneously on the same RStudio session.
It is good to have both versions of R because sometimes the 32-bit version is faster to run, but it is limited to 3Gb of RAM. The 64-bit version is not limited and can access as much RAM as your computer has.
This is an old post and I wrote it when it was impossible to install R with simple (it was installing old 2.15
version):
sudo apt-get install r-base-core
Right now you do not need to do all written below and can simply use the abovementioned command. At the time of updating it will give you 3.1
version.
Here is previous post
Uninstall old R
sudo apt-get remove r-base-core
Open sources.list
sudo nano /etc/apt/sources.list
and add deb to it
deb http://cran.rstudio.com/bin/linux/ubuntu precise/
precise is your ubuntu name (may be different)
Add key to sign CRAN packages
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
Add specific PPA to the system
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
installing
sudo apt-get install r-base
From R to check version
version
should give you
version.string R version 3.0.0 (2013-04-03)
Hope people will find this helpful
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With