Skip to content

Commit

Permalink
Merge 5eb52c7 into f69e6a2
Browse files Browse the repository at this point in the history
  • Loading branch information
dagola committed Jul 12, 2019
2 parents f69e6a2 + 5eb52c7 commit caeda0b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/parallelLibrary.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ parallelLibrary = function(..., packages, master = TRUE, level = NA_character_,
reg = getBatchJobsReg()
BatchJobs::addRegistryPackages(reg, packages)
})
} else if (mode %in% c(MODE_BATCHTOOLS)) {
showInfoMessage("Storing package info for batchtools slave jobs: %s",
collapse(packages), show.info = show.info)
# collect in R option, add new packages to old ones
suppressMessages({
reg = getBatchtoolsReg()
reg$packages <- c(reg$packages, packages)
batchtools::saveRegistry(reg = reg)
})
}
}
}
Expand Down

0 comments on commit caeda0b

Please sign in to comment.