Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into ro_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Aug 12, 2017
2 parents 00ecf2b + ed85246 commit 3700b35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/ids.R
Expand Up @@ -52,7 +52,7 @@ convertIds = function(reg, ids, default = NULL, keep.extra = character(0L), keep

invalid = ids[!reg$status, on = "job.id", which = TRUE]
if (length(invalid) > 0L) {
info("Ignoring %i invalid job id", length(invalid), if (length(ids) > 1L) "s" else "")
info("Ignoring %i invalid job id%s", length(invalid), if (length(ids) > 1L) "s" else "")
ids = ids[-invalid]
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@

As a successor of the packages [BatchJobs](https://github.com/tudo-r/BatchJobs) and [BatchExperiments](https://github.com/tudo-r/Batchexperiments), batchtools provides a parallel implementation of Map for high performance computing systems managed by schedulers like Slurm, Sun Grid Engine, OpenLava, TORQUE/OpenPBS, Load Sharing Facility (LSF) or Docker Swarm (see the setup section in the [vignette](https://mllg.github.io/batchtools/articles/batchtools.html)).

The main features conclude:
Main features:
* Convenience: All relevant batch system operations (submitting, listing, killing) are either handled internally or abstracted via simple R functions
* Portability: With a well-defined interface, the source is independent from the underlying batch system - prototype locally, deploy on any high performance cluster
* Reproducibility: Every computational part has an associated seed stored in a data base which ensures reproducibility even when the underlying batch system changes
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/test_Registry.R
Expand Up @@ -101,8 +101,7 @@ test_that("loadRegistry after early node error still usable (#135)", {
batchMap(identity, 1:2, reg = reg)
jc = makeJobCollection(1, reg = reg)
jc$packages = "not_existing_package"
writeRDS(jc, jc$uri)
suppressAll(runOSCommand(Rscript(), sprintf("-e 'batchtools::doJobCollection(\"%s\")'", jc$uri)))
suppressAll(doJobCollection(jc))
expect_character(list.files(fp(reg$file.dir, "updates")), len = 1L)
expect_true(syncRegistry(reg = reg))
expect_string(getErrorMessages(reg = reg)$message, fixed = "not_existing_package")
Expand Down

0 comments on commit 3700b35

Please sign in to comment.