Created
December 2, 2013 20:13
-
-
Save multidis/7757971 to your computer and use it in GitHub Desktop.
R and RStudio setup on Ubuntu 12.04.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### R setup from specific CRAN mirror: cran.cnr.berkeley.edu | |
## make sure backports is checked in software sources/updates tab | |
## add repository instructions http://cran.r-project.org/bin/linux/ubuntu/README | |
sudo gedit /etc/apt/sources.list ## or better from GUI-Synaptic to check correct URL | |
## add: | |
## deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu precise/ | |
## add secure key required for mirror reporitories | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 | |
sudo apt-get update | |
sudo apt-get install r-base r-base-dev | |
### RStudio: download deb-installer (64 bit) and run | |
## NOTE: better to set library-dir (R) inside user's home, | |
## otherwise would need to start RStudio with sudo to update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment