Sunday, April 6, 2014

Upgrading to R 3.0.3 in my Mac OS X 10.7.5 Lion

Ok, so as my first post I would like to comment a bit about upgrading R in my MacBook Pro. I did this in order to complete the assignment of Week 4 for the course of Bioinformatic Methods II in Coursera (www.coursera.org).

I found a nice post about this but for Leopard in here:
http://onertipaday.blogspot.se/2008/10/r-upgrade-on-mac-os-x-1055-leopard.html

Along with
http://r.research.att.com/man/RMacOSX-FAQ.html#How-can-R-for-Mac-OS-X-be-obtained-and-installed_003f


To reinstall packages from an old version of R to a new one, go into the terminal:
$ R
> tmp <- installed.packages()
> installedpkgs <- as.vector(tmp[is.na(tmp[,"Priority"]), 1])
> save(installedpkgs, file="installed_old.rda")
> quit()



I downloaded the version 3.0.3 of R from http://cran.r-project.org/bin/macosx/
To erase the old R version:
$ sudo rm -rf /Library/Frameworks/R.framework /Applications/R.app /Applications/R64.app
$ sudo rm -f /usr/bin/R /usr/bin/Rscript /usr/bin/R32 /usr/bin/R64

I installed the new version just with double-clicking to the downloaded package. From here I just followed all the commands of Paolo in the first link provided above.

No comments:

Post a Comment