diff --git a/R/submitJobs.R b/R/submitJobs.R index 9c716c55..e2d64228 100644 --- a/R/submitJobs.R +++ b/R/submitJobs.R @@ -19,7 +19,7 @@ #' \item{pp.size:}{Maximum size of the pointer protection stack, see \code{\link[base]{Memory}}.} #' \item{blas.threads:}{Number of threads to use for the BLAS backend. Used to set environment variables \dQuote{MKL_NUM_THREADS} and \dQuote{OPENBLAS_NUM_THREADS}. Can be passed as additional column as part of \code{ids} to set per-job resources.} #' \item{measure.memory:}{Enable memory measurement for jobs. Comes with a small runtime overhead.} -#' \item{chunks.as.array.jobs:}{Execute chunks as array jobs.} +#' \item{chunks.as.arrayjobs:}{Execute chunks as array jobs.} #' \item{pm.backend:}{Start a \pkg{parallelMap} backend on the slave.} #' \item{foreach.backend:}{Start a \pkg{foreach} backend on the slave.} #' \item{clusters:}{Resource used for Slurm to select the set of clusters to run \code{sbatch}/\code{squeue}/\code{scancel} on.} diff --git a/man/submitJobs.Rd b/man/submitJobs.Rd index f5a75f7b..f404640e 100644 --- a/man/submitJobs.Rd +++ b/man/submitJobs.Rd @@ -60,7 +60,7 @@ Some resources' names are standardized and it is good practice to stick to the f \item{pp.size:}{Maximum size of the pointer protection stack, see \code{\link[base]{Memory}}.} \item{blas.threads:}{Number of threads to use for the BLAS backend. Used to set environment variables \dQuote{MKL_NUM_THREADS} and \dQuote{OPENBLAS_NUM_THREADS}. Can be passed as additional column as part of \code{ids} to set per-job resources.} \item{measure.memory:}{Enable memory measurement for jobs. Comes with a small runtime overhead.} - \item{chunks.as.array.jobs:}{Execute chunks as array jobs.} + \item{chunks.as.arrayjobs:}{Execute chunks as array jobs.} \item{pm.backend:}{Start a \pkg{parallelMap} backend on the slave.} \item{foreach.backend:}{Start a \pkg{foreach} backend on the slave.} \item{clusters:}{Resource used for Slurm to select the set of clusters to run \code{sbatch}/\code{squeue}/\code{scancel} on.} diff --git a/tests/testthat/test_submitJobs.R b/tests/testthat/test_submitJobs.R index e2d0f033..08f385b6 100644 --- a/tests/testthat/test_submitJobs.R +++ b/tests/testthat/test_submitJobs.R @@ -45,13 +45,3 @@ test_that("per job resources", { ids$chunk = 1L expect_error(submitJobs(ids, reg = reg), "per-job") }) - -test_that("chunks.as.arrayjobs is passed down", { - reg = makeTestRegistry() - fun = function(...) list(...) - ids = batchMap(fun, i = 1:3, reg = reg) - ids$chunk = 1L - submitJobs(ids, resources = resources, reg = reg) - - -})