Skip to content

Commit 7119a34

Browse files
Simplify Linux container example
1 parent a955698 commit 7119a34

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

R/batchtools_slurm.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,19 @@ print.BatchtoolsSlurmFutureBackend <- function(x, ...) {
113113
#' # mkdir -p ~/lxc
114114
#' # apptainer build ~/lxc/rocker_r-base.sif docker://rocker/r-base
115115
#' #
116-
#' # It assumes that 'future.batchtools' has been installed in the
117-
#' # container already with 'R_LIBS_USER' on host;
116+
#' # Example assumes that 'future.batchtools' has already been installed in
117+
#' # the container to the 'R_LIBS_USER' package folder living on the host;
118118
#' #
119-
#' # R_LIBS_USER="~/R/rocker-%p-library/%v" \
120-
#' # apptainer exec ~/lxc/rocker_r-base.sif R --quiet
119+
#' # R_LIBS_USER="~/R/rocker-%p-library/%v" ~/lxc/rocker_r-base.sif
120+
#' # ...
121121
#' # > chooseCRANmirror(ind = 1)
122122
#' # > install.packages("future.batchtools")
123123
#' #
124124
#' plan(future.batchtools::batchtools_slurm, resources = list(
125125
#' time = "00:10:00", mem = "400M",
126126
#' asis = c("--nodes=1", "--ntasks=4", "--partition=freecycle"),
127127
#' details = TRUE,
128-
#' envs = c(R_LIBS_USER="~/R/rocker-%p-library/%v"),
128+
#' envs = c(R_LIBS_USER = "~/R/rocker-%p-library/%v"),
129129
#' rscript = c("apptainer", "exec", "~/lxc/rocker_r-base.sif", "Rscript")
130130
#' ))
131131
#'

man/batchtools_slurm.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)