Singularity image for R.
This is still a work in progress.
You can build a local Singularity image named singularity-r.sif with:
sudo singularity build singularity-r.sif singularity.defInstead of building it yourself you can download the pre-built image from Singularity Hub with:
singularity pull singularity-r.sif library://nickjer/default/singularity-r:4.1.1WARNING: This pre-built image comes with OpenBLAS installed using the Debian binary packages. Be sure to run any tests with libraries that leverage OpenBLAS in your enviroment. If you notice any odd results it may be best to build this image from scratch on the machine you intend to run it on. See instructions under the Build section above.
The R command is launched using the default run command:
singularity run singularity-r.sifor as an explicit app:
singularity run --app R singularity-r.sifExample:
$ singularity run --app R singularity-r.sif --version
R version 4.1.1 (2021-08-10) -- "Kick Things"
Copyright (C) 2021 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 the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.The Rscript command is launched as an explicit app:
singularity run --app Rscript singularity-r.sifExample:
$ singularity run --app Rscript singularity-r.sif --version
R scripting front-end version 4.1.1 (2021-08-10)Bug reports and pull requests are welcome on GitHub at https://github.com/nickjer/singularity-r.
The code is available as open source under the terms of the MIT License.