Here are instructions for preparing your development environment for Coursera's
The Data Scientist's Toolbox.
Install R's Latest Version on Ubuntu 12.04
If you already have an older version installed:
$ sudo apt-get remove r-base-core
Add the following line to
/etc/apt/sources.list:
$ deb http://cran.rstudio.com/bin/linux/ubuntu precise/
Add the R development repository:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
$ sudo add-apt-repository ppa:marutter/rdev
$ sudo apt-get update
$ sudo apt-get upgrade
Install R:
$ sudo apt-get install r-base
Install CRAN Packages
Install the dependencies on Ubuntu:
$ sudo apt-get install php5-curl
$ sudo apt-get install libcurl4-openssl-dev
$ sudo apt-get install libxml2-dev
Execute R as root:
$ sudo R
Install devtools:
> install.packages('devtools', repos='http://cran.us.r-project.org')
Install slidify:
> library(devtools)
> install_github('slidify', 'ramnathv')
> install_github('slidifyLibraries', 'ramnathv')
Install biocLite packages
Source the biocLite repository:
> source('http://bioconductor.org/biocLite.R')
Install biocLite base packages:
> biocLite()
Install GenomicFeatures and AnnotationDbi:
> biocLite(c('GenomicFeatures', 'AnnotationDbi'))
List Available Packages
> options(repos=structure(c(CRAN='http://cran.us.r-project.org')))
> available_packages = available.packages()
> head(rownames(available_packages), 10)
Install RStudio
Download the debian install file from
here and open it with Ubuntu Software Center.