Created
June 8, 2014 08:19
-
-
Save yantonov/3119134ff15144ae3890 to your computer and use it in GitHub Desktop.
install r on ubuntu 14.04
This file contains hidden or 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
#!/bin/bash | |
# source | |
# ubuntu readme : http://cran.r-project.org/bin/linux/ubuntu/README | |
# cran r mirrors : http://cran.r-project.org/mirrors.html | |
# add repository | |
sudo apt-add-repository "deb http://cran.gis-lab.info/bin/linux/ubuntu trusty/" | |
# import key | |
sudo gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 | |
# add key | |
sudo gpg -a --export E084DAB9 | sudo apt-key add - | |
# update package info | |
sudo apt-get update | |
# install r | |
sudo apt-get install r-base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment