Skip to content

Instantly share code, notes, and snippets.

@yantonov
Created June 8, 2014 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yantonov/3119134ff15144ae3890 to your computer and use it in GitHub Desktop.
Save yantonov/3119134ff15144ae3890 to your computer and use it in GitHub Desktop.
install r on ubuntu 14.04
#!/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