FutureParam: Creates a FutureParam object

Description Usage Arguments Value Examples

View source: R/FutureParam-class.R

Description

Creates a FutureParam object

Usage

1
2
FutureParam(catch.errors = TRUE, stop.on.error = TRUE, log = FALSE,
  threshold = "INFO", logdir = NA_character_)

Arguments

catch.errors

...

stop.on.error

...

log

...

threshold

...

logdir

...

Value

A BiocParallelParam object of class FutureParam

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library("BiocParallel.FutureParam")
register(FutureParam())
plan(multiprocess)

mu <- 1.0
sigma <- 2.0
x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
  rnorm(i, mean = mu, sd = sigma)
})
print(x)

## WORKAROUND: For some reason, 'R CMD check' on Windows will give an
## error when running this example with plan(multisession), unless we
## reset the future plan at the end.
plan(sequential)

HenrikBengtsson/BiocParallel.FutureParam documentation built on July 10, 2017, 6:41 p.m.