...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Use modulepath as mentioned above. This example uses the old TCL modules [alp514.sol-a101](1000): module use --append /share/Apps/share/Modules/modulefiles/singularity [alp514.sol-a101](1001): module av rstudio ----------------------------------------------------------------- /share/Apps/share/Modules/modulefiles/singularity ----------------------------------------------------------------- rstudio/r-3.5.3 rstudio/r-3.6.3 rstudio/r-4.0.2-base rstudio/r-4.0.2-bio rstudio/r-4.0.2-geo [alp514.sol-a101](1002): module load rstudio/r-4.0.2-base [alp514.sol-a101](1003): singularity run --app Rscript ${RSTUDIO_SERVER_IMAGE} -e "nrow(as.data.frame(installed.packages()[,1]))" [1] 608 [alp514.sol-a101](1004): module swap rstudio/r-4.0.2-base rstudio/r-4.0.2-bio [alp514.sol-a101](1005): singularity run --app R ${RSTUDIO_SERVER_IMAGE} -e "nrow(as.data.frame(installed.packages()[,1]))" R version 4.0.2 (2020-06-22) -- "Taking Off Again" Copyright (C) 2020 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored] > nrow(as.data.frame(installed.packages()[,1])) [1] 719 > > [alp514.sol-a101](1006): module swap rstudio/r-4.0.2-bio rstudio/r-4.0.2-geo [alp514.sol-a101](1007): singularity exec ${RSTUDIO_SERVER_IMAGE} Rscript -e "nrow(as.data.frame(installed.packages()[,1]))" [1] 901 |
...