BwUniCluster2.0/Software/R/Glmnet

From bwHPC Wiki
< BwUniCluster2.0‎ | Software‎ | R
Revision as of 19:09, 18 November 2021 by F Wagner (talk | contribs) (Created page with "= Installation instructions = Consider starting an interactive job for compiling. Copy and paste the following to your shell. <pre> # Load the R software module, e.g. module...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installation instructions

Consider starting an interactive job for compiling. Copy and paste the following to your shell.

# Load the R software module, e.g.
module load math/R/4.1.2

# Prepare .R directory (if it does not already exists)
mkdir -p ~/.R

# Write the following environment variables to Makevars
echo "CXX14=icpc" >> ~/.R/Makevars
echo "CXX14FLAGS=-O3 -fPIC -std=c++14 -axCORE-AVX512,CORE-AVX2,AVX -xSSE4.2 -fp-model strict -qopenmp" >> ~/.R/Makevars

# Install the glmnet package from within R session
R -q
> install.packages("glmnet", dependencies=TRUE)

# Run a quick test
> library(glmnet)