vignettes/docker.Rmd
docker.Rmd
templateR is now available via ghcr.io as a containerised environment with Rstudio and all necessary dependencies pre-installed.
First, install Docker if you have not already.
Create an image of the Docker container in command line:
docker pull ghcr.io/neurogenomics/templateR
Once the image has been created, you can launch it with:
docker run \
-d \
-e ROOT=true \
-e PASSWORD="<your_password>" \
-v ~/Desktop:/Desktop \
-v /Volumes:/Volumes \
-p 8900:8787 \
ghcr.io/neurogenomics/templateR
<your_password>
above with
whatever you want your password to be.-v
flags for your
particular use case.-d
ensures the container will run in “detached”
mode, which means it will persist even after you’ve closed your command
line session.If you are using a system that does not allow Docker (as is the case for many institutional computing clusters), you can instead install Docker images via Singularity.
singularity pull docker://ghcr.io/neurogenomics/templateR
For troubleshooting, see the Singularity documentation.
Finally, launch the containerised Rstudio by entering the following URL in any web browser: http://localhost:8900/
Login using the credentials set during the Installation steps.
utils::sessionInfo()
## R version 4.5.1 (2025-06-13)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.2 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## time zone: UTC
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] templateR_0.99.0
##
## loaded via a namespace (and not attached):
## [1] digest_0.6.37 desc_1.4.3 R6_2.6.1 fastmap_1.2.0
## [5] xfun_0.52 cachem_1.1.0 knitr_1.50 htmltools_0.5.8.1
## [9] rmarkdown_2.29 lifecycle_1.0.4 cli_3.6.5 sass_0.4.10
## [13] pkgdown_2.1.3 textshaping_1.0.1 jquerylib_0.1.4 systemfonts_1.2.3
## [17] compiler_4.5.1 tools_4.5.1 ragg_1.4.0 evaluate_1.0.4
## [21] bslib_0.9.0 yaml_2.3.10 jsonlite_2.0.0 rlang_1.1.6
## [25] fs_1.6.6 htmlwidgets_1.6.4