Skip to content

Commit

Permalink
tweaks [#58]
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jan 3, 2021
1 parent 977d043 commit 60fe0b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/doFuture.R
Expand Up @@ -215,12 +215,12 @@ doFuture <- function(obj, expr, envir, data) { #nolint
"doRNG" %in% loadedNamespaces()) {
## Taken care of by the doRNG package
seed <- NULL
} else if (all(c("%dopar%", "BPPARAM", "BPREDO") %in% names(envir))) {
if (inherits(envir[["BPPARAM"]], "DoparParam") &&
is.list(envir[["BPREDO"]])) {
## Taken care of by the BiocParalle package
seed <- NULL
}
} else if (all(c("%dopar%", "BPPARAM", "BPREDO") %in% names(envir)) &&
"BiocParallel" %in% loadedNamespaces() &&
inherits(envir[["BPPARAM"]], "DoparParam") &&
is.list(envir[["BPREDO"]])) {
## Taken care of by the BiocParallel package
seed <- NULL
}

## Are there RNG-check settings specific for doFuture?
Expand Down

0 comments on commit 60fe0b2

Please sign in to comment.