Changes between Version 6 and Version 7 of Workshops/JobCheckpointing/Examples/R
- Timestamp:
- 09/02/2026 03:46:59 PM (38 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Workshops/JobCheckpointing/Examples/R
v6 v7 20 20 * [wiki://Workshops/JobCheckpointing/Examples#plot_progress.py plot_progress.py] 21 21 22 2. Create your own version of the following R application script file '''checkpoint_signal_ R.sh'''.22 2. Create your own version of the following R application script file '''checkpoint_signal_iter.R'''. 23 23 24 24 {{{ … … 79 79 80 80 81 3. Use the steps in the section [wiki:cypress/RunningRStudioWithSingularity#Alternativefortidyverse Alternative for tidyverse] for constructing a container image file '''tidyverse_latest.sif''' (or '''tidyverse_4. 5.2.sif''' as in the following) for use with Singularity.81 3. Use the steps in the section [wiki:cypress/RunningRStudioWithSingularity#Alternativefortidyverse Alternative for tidyverse] for constructing a container image file '''tidyverse_latest.sif''' (or '''tidyverse_4.6.1.sif''' as in the following) for use with Singularity. 82 82 83 83 4. Install the required R package '''sigterm''' via the following, substituting your own writable R library directory for <R_lib_path>. See [wiki:cypress/InstallingRPackages Installing R Packages on Cypress] for more information on using a writable R library directory. … … 86 86 [tulaneID@cypress1 ~]$idev --partition=centos7 87 87 [tulaneID@cypress01-XXX ~]$module load singularity/3.9.0 88 [tulaneID@cypress01-XXX ~]$singularity shell tidyverse_4. 5.2.sif88 [tulaneID@cypress01-XXX ~]$singularity shell tidyverse_4.6.1.sif 89 89 Singularity> Rscript --version # confirm Rscript is available 90 Rscript (R) version 4.5.2 (2025-10-31) 91 Singularity>Rscript -e "devtools::install_github('atheriel/sigterm', lib='<R_lib_path>')" 90 Rscript (R) version 4.6.1 (2026-06-24) 91 # install required remotes package 92 Singularity> Rscript -e "install.packages('remotes', lib=.libPaths()[3], repos='https://cloud.r-project.org')" 93 Singularity>Rscript -e "remotes::install_github('atheriel/sigterm', lib=.libPaths()[3])" 92 94 Singularity>exit # exit the container 93 95 [tulaneID@cypress01-XXX ~]$exit # exit the interactive session … … 97 99 98 100 {{{ 99 [tulaneID@cypress1 ~]$APP_CMD="singularity exec tidyverse_4. 5.2.sif Rscript checkpoint_signal_iter.R" \101 [tulaneID@cypress1 ~]$APP_CMD="singularity exec tidyverse_4.6.1.sif Rscript checkpoint_signal_iter.R" \ 100 102 MODULE_LIST="singularity/3.9.0" \ 101 103 CKPT_PATH=state_iter_r.txt \
