Skip to content

Instantly share code, notes, and snippets.

@sigriston
Created March 4, 2015 18:50
Show Gist options
  • Save sigriston/8ec3109685de6f1d4ed8 to your computer and use it in GitHub Desktop.
Save sigriston/8ec3109685de6f1d4ed8 to your computer and use it in GitHub Desktop.
Install R in Linux!
#!/bin/sh
# Add R packages repo
apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480
cat >> /etc/apt/sources.list <<EOF
deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/
EOF
apt-get update
# Install R
apt-get -y install r-base r-base-dev
#!/bin/sh
# Add R packages repo
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
cat >> /etc/apt/sources.list <<EOF
deb http://cran.rstudio.com/CRAN/bin/linux/ubuntu precise/
EOF
apt-get update
# Install R
apt-get -y install r-base r-base-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment