with_plan: Locally change a 'future' plan.

with_planR Documentation

Locally change a future plan.

Description

https://github.com/HenrikBengtsson/future/issues/263

Usage

with_plan(expr, ..., envir = parent.frame())

Arguments

expr

An expression to evaluate using a future plan.

...

Passed to future::plan(). Pass a plan here, e.g. future::sequential.

envir

An environment in which to evaluate expr.

Value

Value returned by expr.

Examples

with_plan(1 + 1, future::sequential)

bioinfocz/scdrake documentation built on Sept. 19, 2024, 4:43 p.m.