Changes between Version 25 and Version 26 of cypress/R


Ignore:
Timestamp:
08/19/2025 11:00:03 AM (14 months ago)
Author:
Carl Baribault
Comment:

Updating content for workshop

Legend:

Unmodified
Added
Removed
Modified
  • cypress/R

    v25 v26  
    44
    55== R Modules ==
    6 You can list the versions of R available on Cypress as modules with the '''module avail''' command as in the following example.
    7 
    8 {{{
    9 [tulaneID@cypress1 ~]$module avail R
    10 --------------------------------------- /share/apps/modulefiles ----------------------------------------
    11 R/3.1.2(default) R/3.2.5-intel    R/3.4.1-intel    R/3.6.1-intel
    12 R/3.2.4          R/3.3.1-intel    R/3.5.2-intel    ROOT/5.34.36
     6You can list the versions of R available on Cypress as modules with the '''module avail''' command as in the following example, including the "/" character to show only R modules.
     7
     8{{{
     9[tulaneID@cypress1 ~]$module avail R/
     10
     11------------------------------------------------- /share/apps/modulefiles --------------------------------------------------
     12R/3.1.2(default) R/3.2.5-intel    R/3.4.1-intel    R/3.6.1-intel    R/4.1.1-intel
     13R/3.2.4          R/3.3.1-intel    R/3.5.2-intel    R/4.1.0-intel
     14
     15--------------------------------------------- /share/apps/centos7/modulefiles ----------------------------------------------
     16R/4.3.2 R/4.4.1
    1317}}}
    1418
    … …  
    1721See [[cypress/XeonPhi]].
    1822
     23Also, the later versions of R require a later version, CentOS 7, of the operating system running on compute nodes in their own SLURM partition.
     24
    1925== Running R Interactively ==
    2026
     27=== Start an interactive session using idev ===
     28
     29In the following we'll use the latest version of R available.
     30
    2131==== For Workshop ====
    22 If you use a temporary workshop account, do this.
     32
     33If the primary group of your account is '''workshop''', then in order to use only 2 cpu's per node and thus allow for sharing the few available nodes in the interactive partition among many users, do this.
     34
    2335{{{
    2436export MY_PARTITION=workshop
    2537export MY_QUEUE=workshop
    26 }}}
    27 
    28 Start an interactive session using idev
    29 
     38[tulaneID@cypress1 ~]$ idev -c 2
     39}}}
     40
     41
     42==== Non-workshop ====
    3043{{{
    3144[tulaneID@cypress1 ~]$ idev
    … …  
    4255}}}
    4356
    44 ==== For Workshop ====
    45 If you use a temporary workshop account, in order to use only 2 cpu's per node and thus allow for sharing the few available nodes in the interactive partition among many users, do this.
    46 {{{
    47 [tulaneID@cypress1 ~]$ idev -c 2
    48 }}}
    49 
    50 Load the R module
    51 
    52 {{{
    53 [tulaneID@cypress01-121 ~]$ module load R/3.2.4
     57=== Load the R module ===
     58
     59{{{
     60[tulaneID@cypress01-121 ~]$ module load R/4.1.1-intel
    5461[tulaneID@cypress01-121 ~]$ module list
    5562Currently Loaded Modulefiles:
    56   1) slurm/14.03.0       3) bbcp/amd64_rhel60
    57   2) idev                4) R/3.2.4
    58 }}}
    59 
    60 Run R in the command line window
     63  1) slurm/14.03.0             6) mpfr/4.1.0               11) xz/5.2.2                 16) libtiff/4.3.0
     64  2) idev                      7) mpc/1.2.1                12) pcre2/10.38              17) R/4.1.1-intel
     65  3) bbcp/amd64_rhel60         8) gcc/6.3.0                13) tcl/8.6.11
     66  4) intel-psxe/2019-update1   9) zlib/1.2.8               14) tk/8.6.11
     67  5) gmp/6.2.1                10) bzip2/1.0.6              15) libpng/1.6.37
     68}}}
     69
     70=== Run R in the command line window ===
    6171
    6272{{{
    6373[tulaneID@cypress01-121 ~]$R
    6474
    65 R version 3.2.4 (2016-03-10) -- "Very Secure Dishes"
    66 Copyright (C) 2016 The R Foundation for Statistical Computing
     75R version 4.1.1 (2021-08-10) -- "Kick Things"
     76Copyright (C) 2021 The R Foundation for Statistical Computing
    6777Platform: x86_64-pc-linux-gnu (64-bit)
    6878
    … …  
    7080You are welcome to redistribute it under certain conditions.
    7181Type 'license()' or 'licence()' for distribution details.
    72 
    73   Natural language support but running in an English locale
    7482
    7583R is a collaborative project with many contributors.