| Title: | Use Futures with BiocParallel |
|---|---|
| Description: | A 'BiocParallelParam' class for using futures with the BiocParallel framework, e.g. BiocParallel::register(FutureParam()). |
| Authors: | Henrik Bengtsson [aut, cre, cph], Ryan Thompson [ctb] |
| Maintainer: | Henrik Bengtsson <[email protected]> |
| License: | LGPL (>= 2.1) |
| Version: | 0.2.1-9001 |
| Built: | 2026-11-22 01:18:30 UTC |
| Source: | https://github.com/futureverse/BiocParallel.FutureParam |
Creates a FutureParam object
FutureParam(...)FutureParam(...)
... |
Arguments passed to the initialization method of BiocParallel::BiocParallelParam. |
A BiocParallel::BiocParallelParam object of class FutureParam.
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) ## 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)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) ## 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)