Changes between Version 5 and Version 6 of cypress/RunningRStudioWithSingularity


Ignore:
Timestamp:
02/05/26 16:34:28 (12 hours ago)
Author:
Carl Baribault
Comment:

Added tidyvverse alternative to bare RStudio

Legend:

Unmodified
Added
Removed
Modified
  • cypress/RunningRStudioWithSingularity

    v5 v6  
    4848}}}
    4949
    50 
    5150== Construct and check the image file for RStudio ==
    5251Then proceed as follows to construct the container image file '''rstudio_latest.sif''' and check the R version.
     
    7069}}}
    7170
     71== Alternative for tidyverse ==
     72As an alternative to just the base RStudio container, you can construct the container image file '''tidyverse_latest.sif''' and run RStudio server with the '''tidyverse''' package suite pre-installed.
     73
     74To do so, here and in the following, simply substitute '''tidyverse_latest.sif''' for '''rstudio_latest.sif'''.
     75
     76{{{
     77[tulaneID@cypress01-060 ~]$module load singularity/3.9.0 # load the singularity module
     78[tulaneID@cypress01-060 ~]$singularity pull docker://rocker/tidyverse:latest # takes a few minutes to construct file r-base_latest.sif
     79...
     80[tulaneID@cypress01-060 ~]$singularity exec tidyverse_latest.sif R --version # check the version of R
     81R version 4.5.2 (2025-10-31) -- "[Not] Part in a Rumble"
     82Copyright (C) 2025 The R Foundation for Statistical Computing
     83Platform: x86_64-pc-linux-gnu
     84
     85R is free software and comes with ABSOLUTELY NO WARRANTY.
     86You are welcome to redistribute it under the terms of the
     87GNU General Public License versions 2 or 3.
     88For more information about these matters see
     89https://www.gnu.org/licenses/.
     90
     91[tulaneID@cypress01-060 ~]$
     92}}}
     93
    7294== Start the RStudio server ==
    73 
    7495
    7596 * Setup local authentication
     
    89110
    90111{{{
    91 [tulaneID@cypress01-060 ~]$singularity exec -B /lustre:/lustre --scratch /run,/var/lib/rstudio-server --workdir $(mktemp -d) tidyverse_latest.sif  rserver --www-address=0.0.0.0 --www-port=8888 --server-user=$(whoami) --database-config-file $PWD/database.conf
     112[tulaneID@cypress01-060 ~]$singularity exec -B /lustre:/lustre --scratch /run,/var/lib/rstudio-server --workdir $(mktemp -d) rstudio_latest.sif  rserver --www-address=0.0.0.0 --www-port=8888 --server-user=$(whoami) --database-config-file $PWD/database.conf
    92113}}}
    93114