User Tools

Site Tools


r-software

Table of Contents

R

R is a free software environment for statistical computing and graphics.

Information

Usage

See versions of R that are available:

$ module avail R

Load one version into your environment and run it:

$ module load R/3.5
$ R

Here is a good resource on installing R packages into user libraries.

Installation

Notes from the sysadmin during installation:

$ cd /tmp
$ wget https://cran.r-project.org/src/base/R-3/R-3.5.2.tar.gz
$ tar xf R-3.5.2.tar.gz
$ cd R-3.5.2
$ sudo yum install gcc-gfortran gcc-c++ libX11-devel libXaw-devel bzip2-devel libcurl-devel xz-devel readline-devel
$ ./configure --enable-R-shlib --prefix=/export/apps/R/3.5
$ make -j4
$ sudo mkdir -p /export/apps/R/3.5
$ sudo chown aorth:aorth /export/apps/R/3.5
$ make install
$ sudo chown -R root:root /export/apps/R/3.5
$ sudo yum remove gcc-c++ libX11-devel libXaw-devel bzip2-devel libcurl-devel xz-devel readline-devel

Note to future Alan: don't remove gcc-gfortran after the install because some users need it!

r-software.txt · Last modified: 2019/01/28 20:52 by aorth