Skip to content

Commit

Permalink
fix doc for chunks.as.arrayjobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed May 24, 2018
1 parent 478a6d0 commit f5a91d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion R/submitJobs.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.}
Expand Down
2 changes: 1 addition & 1 deletion man/submitJobs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions tests/testthat/test_submitJobs.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)


})

0 comments on commit f5a91d5

Please sign in to comment.