Helper functions to use slurmR
's docker image. This requires
having an internet connection and docker
installed in your
system.
docker_available(path = "")
slurmr_docker_pull(path = "")
slurmr_docker_run(path = "", pull = TRUE, timeout = 60)
slurmr_docker_stop(UUID = "", path = "")
Path to the docker
executable. If not specified, the function
will try to figure it out by itself.
Logical scalar. When TRUE
, if not available, it will
invoke docker pull
.
Integer. Number of seconds to wait for docker to start the slurmR image.
String. Universally Unique Identifier.
Starting version 0.5-0, a Docker image with Slurm, R, and slurmR is available at https://hub.docker.com/r/uscbiostats/slurmr. The source code (Dockerfile) is available in the project GitHub repository: https://github.com/USCbiostats/slurmR.
# This example requires having Docker installed in the system
if (FALSE) {
# Start the docker image. By default it will try to pull the
# image from Docker Hub if available
# This opens a bash session with R + Slurm + slurmR
slurmr_docker_run()
# Will pull the docker image
slurmr_docker_pull()
}