R-Teaching
Category
Statistics
Program On
Teaching
Version
4.0.0
Author / Distributor
Description
R is a language and environment for statistical computing and graphics. It provides a wide variety of statistical (linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques.
Running Program
Also refer to Running Jobs on the teaching cluster
R version 4.0.0
R version 4.0.0 is installed in /apps/eb/R/4.0.0-foss-2019b and add-on packages are installed in /apps/eb/R/4.0.0-foss-2019b/lib64/R/library
To use this version of R, please first load the module with
module load R/4.0.0-foss-2019b
Please note that when you load this R module, many other modules will be loaded as R depends on those other libraries and packages.
Here is an example of a shell script, sub.sh, to run on the batch queue:
#!/bin/bash
#SBATCH --job-name=j_R
#SBATCH --partition=batch
#SBATCH --mail-type=ALL
#SBATCH --mail-user=username@uga.edu
#SBATCH --ntasks=1
#SBATCH --mem=10gb
#SBATCH --time=08:00:00
#SBATCH --output=R.%j.out
#SBATCH --error=R.%j.err
cd $SLURM_SUBMIT_DIR
ml R/4.0.0-foss-2019b
R CMD BATCH program.R
In the real submission script, at least all the above underlined values need to be reviewed or to be replaced by the proper values.
Please refer to Running_Jobs_on_the_teaching_cluster, Run X window Jobs and Run interactive Jobs for more details of running jobs at Teaching cluster.
Here is an example of job submission command:
sbatch ./sub.sh
Documentation
Please see http://www.r-project.org/
Installation
- Version 4.0.0 is installed in /apps/eb/R/4.0.0-foss-2019b/ and add-on packages are installed in /apps/eb/R/4.0.0-foss-2019b/lib64/R/library
System
64-bit Linux