Creates a FutureParam object

FutureParam(...)

Arguments

...

Arguments passed to the initialization method of BiocParallel::BiocParallelParam.

Value

A BiocParallel::BiocParallelParam object of class FutureParam.

Examples

library("BiocParallel.FutureParam") register(FutureParam()) plan(multisession) 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)
#> [[1]] #> [1] 2.501308 #> #> [[2]] #> [1] 3.1072927 0.3009823 #> #> [[3]] #> [1] 2.2961592 3.0362081 0.3013251 #>
## 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)