Changes between Version 9 and Version 10 of cypress/SingularityDockerhub


Ignore:
Timestamp:
08/20/25 22:36:08 (8 hours ago)
Author:
cbaribault
Comment:

Added explanation for r-base

Legend:

Unmodified
Added
Removed
Modified
  • cypress/SingularityDockerhub

    v9 v10  
    6060== Example 2: Building a container including the latest version of R ==
    6161
    62 The first of this sequence of commands creates ‘r-base_latest.sif’, which is the Singularity Image. You can rename/transfer it as you like.
     62The following command creates ‘r-base_latest.sif’, which is the Singularity Image. You can rename/transfer it as you like.
    6363
    6464{{{
    6565singularity pull docker://r-base:latest  # creating .sif file takes ~6 minutes
     66}}}
     67
     68Next we can enter the container shell and interactively query the R environment.
     69
     70{{{
    6671singularity shell -s /bin/bash r-base_latest.sif
    6772Singularity> head -1 /etc/os-release
     
    6974Singularity> Rscript -e 'R.version.string'
    7075[1] "R version 4.5.1 (2025-06-13)"
    71 Singularity>
     76Singularity>exit
     77}}}
     78
     79Alternatively, we can execute just a single command inside the container to query the R environment.
     80
     81{{{
     82singularity exec r-base_latest.sif Rscript -e 'R.version.string'
     83[1] "R version 4.5.1 (2025-06-13)"
    7284}}}
    7385