Skip to contents

Setup Execution Configuration

Usage

setup_ExecutionConfig(
  backend = c("future", "mirai", "none"),
  n_workers = NULL,
  future_plan = NULL
)

Arguments

backend

Character: Execution backend: "future", "mirai", or "none".

n_workers

Integer: Number of workers for parallel execution. Only used if backend is "future" or "mirai". Do not rely on the default value, set to an appropriate number depending on your system.

future_plan

Character: Future plan to use if backend is "future".

Value

ExecutionConfig object.

Author

EDG

Examples

setup_ExecutionConfig(backend = "future", n_workers = 4L, future_plan = "multisession")
#> <ExecutionConfig>
#>     backend: <chr> future
#>   n_workers: <int> 4
#> future_plan: <chr> multisession
#>