Learn R Programming

LipidMS (version 3.1.0)

.with_future_plan: Temporarily set a future plan and globals max size while running a block

Description

Internal helper to encapsulate future::plan(...) and future.globals.maxSize for a given expression, restoring the user's state on exit.

Usage

.with_future_plan(workers = 1L, globals_gb = 24, expr)

Arguments

workers

ncores

globals_gb

max size for globals

expr

expr

Author

M Isabel Alcoriza-Balaguer <maialba@alumni.uv.es>