| 3 | | Coming soon |
| | 3 | The [[https://rocker-project.org/ | Rocker Project]] is a website established to provide docker containers in the form of docker files for the R environment. |
| | 4 | |
| | 5 | In order to use any of those docker files on Cypress, we'll need to construct a container file - usually with '''.sif''' file extension - suitable for use with Singularity on Cypress. For reference in the following see [[wiki:Singularity]]. |
| | 6 | |
| | 7 | Here's the sequence of commands to create and simply test a container file for the latest available R version - as provided the above website. |
| | 8 | |
| | 9 | == Start the interactive session == |
| | 10 | First, start an interactive session. |
| | 11 | |
| | 12 | '''For Workshop''' : |
| | 13 | If your account is in the group '''workshop''', please use the following. |
| | 14 | |
| | 15 | {{{ |
| | 16 | [tulaneID@cypress1 ~]$idev --partition=workshop7 -c 2 # request 2 cores in the partition workshop7 |
| | 17 | Requesting 1 node(s) task(s) to normal queue of workshop7 partition |
| | 18 | 1 task(s)/node, 2 cpu(s)/task, 0 MIC device(s)/node |
| | 19 | Time: 0 (hr) 60 (min). |
| | 20 | 0d 0h 60m |
| | 21 | Submitted batch job 3287405 |
| | 22 | JOBID=3287405 begin on cypress01-060 |
| | 23 | --> Creating interactive terminal session (login) on node cypress01-060. |
| | 24 | --> You have 0 (hr) 60 (min). |
| | 25 | --> Assigned Host List : /tmp/idev_nodes_file_tulaneID |
| | 26 | Last login: Tue Jan 13 11:58:39 2026 from cypress1.cm.cluster |
| | 27 | [tulaneID@cypress01-060 ~]$ |
| | 28 | }}} |
| | 29 | |
| | 30 | '''Non-workshop''' |
| | 31 | {{{ |
| | 32 | [tulaneID@cypress1 ~]idev --partition=centos7 # start an interactive session in the partition centos7 |
| | 33 | Requesting 1 node(s) task(s) to normal queue of centos7 partition |
| | 34 | 1 task(s)/node, 20 cpu(s)/task, 0 MIC device(s)/node |
| | 35 | Time: 0 (hr) 60 (min). |
| | 36 | 0d 0h 60m |
| | 37 | Submitted batch job 3288388 |
| | 38 | JOBID=3288388 begin on cypress01-066 |
| | 39 | --> Creating interactive terminal session (login) on node cypress01-066. |
| | 40 | --> You have 0 (hr) 60 (min). |
| | 41 | --> Assigned Host List : /tmp/idev_nodes_file_tulaneID |
| | 42 | Last login: Tue Jan 13 14:09:07 2026 from cypress2.cm.cluster |
| | 43 | [tulaneID@cypress01-066 ~]$ |
| | 44 | }}} |
| | 45 | |
| | 46 | == Construct and check the container image file == |
| | 47 | Then proceed as follows to construct the '''.sif''' container image file and check the R version. |
| | 48 | |
| | 49 | {{{ |
| | 50 | [tulaneID@cypress01-060 ~]$module load singularity/3.9.0 # load the singularity module |
| | 51 | [tulaneID@cypress01-060 ~]$singularity pull docker://rocker/r-base:latest # takes a few minutes to construct file r-base_latest.sif |
| | 52 | ... |
| | 53 | [tulaneID@cypress01-060 ~]$singularity exec r-base_latest.sif R --version # check the version of R |
| | 54 | R version 4.5.2 (2025-10-31) -- "[Not] Part in a Rumble" |
| | 55 | Copyright (C) 2025 The R Foundation for Statistical Computing |
| | 56 | Platform: x86_64-pc-linux-gnu |
| | 57 | |
| | 58 | R is free software and comes with ABSOLUTELY NO WARRANTY. |
| | 59 | You are welcome to redistribute it under the terms of the |
| | 60 | GNU General Public License versions 2 or 3. |
| | 61 | For more information about these matters see |
| | 62 | https://www.gnu.org/licenses/. |
| | 63 | |
| | 64 | [tulaneID@cypress01-066 rstudio at 15:53:56]$ |
| | 65 | }}} |