r-software
This is an old revision of the document!
Table of Contents
R
R is a free software environment for statistical computing and graphics.
Information
- Latest version: 3.3.3
- Added: February, 2015
- Updated: April, 2017
Usage
See versions of R which are available
module avail R
Here is a good resource on [installing R packages into user libraries|https://www.osc.edu/resources/getting_started/howto/howto_install_local_r_packages].
Installation
Notes from the sysadmin during installation (also covers the installation of zlib, bzip2, xz, pcre, and curl, as they are needed by R since ~3.3.x):
$ cd /tmp $ wget http://zlib.net/zlib-1.2.11.tar.xz $ tar xf zlib-1.2.11.tar.xz $ cd zlib-1.2.11 $ ./configure --prefix=/export/apps/zlib/1.2.11 $ make $ make check $ sudo mkdir -p /export/apps/zlib/1.2.11 $ sudo chown aorth /export/apps/zlib/1.2.11 $ make install $ sudo chown -R root:root /export/apps/zlib/1.2.11 $ cd /tmp $ wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz $ tar xf bzip2-1.0.6.tar.gz $ cd bzip2-1.0.6 $ make -f Makefile-libbz2_so $ sudo mkdir -p /export/apps/bzip2/1.0.6 $ sudo chown aorth /export/apps/bzip2/1.0.6 $ make install PREFIX=/export/apps/bzip2/1.0.6 $ sudo chown -R root:root /export/apps/bzip2/1.0.6 $ cd /tmp $ wget https://tukaani.org/xz/xz-5.2.3.tar.xz $ tar xf xz-5.2.3.tar.xz $ cd xz-5.2.3 $ ./configure --prefix=/export/apps/xz/5.2.3 $ make $ make check $ sudo mkdir -p /export/apps/xz/5.2.3 $ sudo chown aorth /export/apps/xz/5.2.3 $ make install $ sudo chown -R root:root /export/apps/xz/5.2.3 $ cd /tmp $ wget http://downloads.sourceforge.net/pcre/pcre-8.40.tar.bz2 $ tar xf pcre-8.40.tar.bz2 $ cd pcre-8.40 $ ./configure --prefix=/export/apps/pcre/8.40 --enable-unicode-properties --enable-pcre16 --enable-pcre32 --enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-pcretest-libreadline $ make $ make check $ sudo mkdir -p /export/apps/pcre/8.40 $ sudo chown aorth /export/apps/pcre/8.40 $ make install $ sudo chown -R root:root /export/apps/pcre/8.40 $ cd /tmp $ tar xf curl-7.54.0.tar.gz $ cd curl-7.54.0 $ ./configure --enable-ipv6 --prefix=/export/apps/curl/7.54.0 $ make $ make check $ sudo mkdir -p /export/apps/curl/7.54.0 $ sudo chown aorth /export/apps/curl/7.54.0 $ make install $ sudo chown -R root:root /export/apps/curl/7.54.0 $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/export/apps/zlib/1.2.11/lib:/export/apps/bzip2/1.0.6/lib:/export/apps/xz/5.2.3/lib:/export/apps/pcre/8.40/lib:/export/apps/curl/7.54.0/lib LDFLAGS="$LDFLAGS -L/export/apps/zlib/1.2.11/lib -L/export/apps/bzip2/1.0.6/lib -L/export/apps/xz/5.2.3/lib -L/export/apps/pcre/8.40/lib -L/export/apps/curl/7.54.0/lib" CFLAGS="$CFLAGS -I/export/apps/zlib/1.2.11/include -I/export/apps/bzip2/1.0.6/include -I/export/apps/xz/5.2.3/include -I/export/apps/pcre/8.40/include -I/export/apps/curl/7.54.0/include" $ wget https://cran.r-project.org/src/base/R-3/R-3.3.3.tar.gz $ tar xf R-3.3.3.tar.gz $ cd R-3.3.3 $ ./configure --enable-R-shlib --prefix=/export/apps/R/3.3.3 $ make -j4 $ make install $ sudo mkdir -p /export/apps/R/3.3.3 $ sudo chown aorth /export/apps/R/3.3.3 $ sudo chown -R root:root /export/apps/R/3.3.3 $ exit
r-software.1493028373.txt.gz · Last modified: 2017/04/24 10:06 by aorth