Skip to content

Instantly share code, notes, and snippets.

@cheuerde
Last active September 14, 2015 16:23
Show Gist options
  • Select an option

  • Save cheuerde/04a19c535e75ae4b324e to your computer and use it in GitHub Desktop.

Select an option

Save cheuerde/04a19c535e75ae4b324e to your computer and use it in GitHub Desktop.
Compile R-devel
# Claas Heuer, September 2015
# set default installation directory:
INSTDIR=$HOME/opt
# place to store the source packages
SOURCES=$HOME/sourcebuilds
###################
### Compiling R ###
###################
cd $SOURCES
# downlad tarball
wget https://stat.ethz.ch/R/daily/R-devel.tar.gz
# extract tarball
tar -xf R-devel.tar.gz
# change to source directory
cd R-devel
# configure with local prefix and shared-blas
./configure --prefix=${INSTDIR}/R-devel --with-cairo
# compile R as shared library
#./configure --prefix=${INSTDIR}/R_openblas --enable-BLAS-shlib --enable-R-shlib
# compile
make -j4
# install
make install
# create a symbolic link for R-devel
ln -s $INSTDIR/R-devel/bin/R /usr/bin/R-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment