PDA

View Full Version : [ubuntu] Updating R?



dgoodin
June 8th, 2010, 06:19 PM
I am trying to update my installation of the R statistical program from V2.10 to 2.11. I have run sudo apt-get install r-base, and get back a message saying that the most recent version is installed. However, when I open the program it is still 2.10. I need 2.11 in order to install some new packages. Any ideas? I am a relatively new Ubuntu user (transitioning from Windows) and still struggle a bit with software installation. Thanks.

squaregoldfish
June 9th, 2010, 12:48 AM
The 2.11 release of R hasn't been added to the repositories.

I would suggest that you uninstall the version from Synaptic, and download the latest copy from the R website - they have .deb files specifically for Ubuntu.

Download the ones you need, and install them using:


sudo dpkg -i <file>.deb

Steve.

mi_di
June 9th, 2010, 02:31 AM
I actually prefer to use R repositories. You can see a list of mirrors here:

http://cran.r-project.org/mirrors.html

And then just add the repository to your list of software sources by adding the following line to /etc/apt/sources.list



deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/


The advantage is that they more or less keep the pace with newer R versions while ubuntu repositories are normally one version behind.

squaregoldfish
June 9th, 2010, 10:09 AM
mi_di's suggestion is much better than mine. I didn't know about that trick...

Steve