Created
March 4, 2015 18:50
-
-
Save sigriston/8ec3109685de6f1d4ed8 to your computer and use it in GitHub Desktop.
Install R in Linux!
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
#!/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 |
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
#!/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