Skip to content

Support for Linux Containers and environment variables #100

@HenrikBengtsson

Description

@HenrikBengtsson

@bwcompton, I think I've added support for what you need. Please install future.batchtools (>= 0.20.0-9024) using:

remotes::install_github("futureverse/future.batchtools", ref="develop")

Then try:

library(future)
plan(future.batchtools::batchtools_slurm, resources = list(
  modules = c("apptainer/latest"),
  envs = c(APPTAINER_BINDPATH = "/run/munge,/var/run/munge,/etc/slurm,/var/spool/slurm/slurmd/conf-cache/slurm.conf,$APPTAINER_BINDPATH"),
  rscript = c("apptainer", "exec", "/modules/admin-resources/ood-dev/unity-r_4.4.0.sif", "Rscript"),
  rscript_args = c("--no-restore", "--quiet", "--no-save")
))

f <- future(sessionInfo())
info <- value(f)
print(info)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions