Created
December 1, 2016 16:10
-
-
Save jdblischak/7c81e1ce8eed6ef1183efc938033988e to your computer and use it in GitHub Desktop.
Install local copy of R from source
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 | |
# Install local copy of R from source. | |
# To run: | |
# bash build-r.sh >& log.txt | |
# Version of R to install (must be part of the R 3.0 series) | |
VERSION=3.3.2 | |
# Directory to install R. If not already present, creates bin, lib and share | |
# subdirectories. Has to be an aboslute path (required by configure) | |
INSTALL_DIR=$HOME/Desktop/test-software | |
# Download source of latest release from CRAN | |
# https://cran.r-project.org/ | |
wget https://cran.r-project.org/src/base/R-3/R-$VERSION.tar.gz | |
tar xzf R-$VERSION.tar.gz | |
cd R-$VERSION | |
./configure --prefix=$INSTALL_DIR --enable-R-shlib | |
make | |
make check | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment