fmParallelStrategy: Utility function for selecting appropriate parallel strategy...

Description Usage Details Value Examples

View source: R/backend.R

Description

Utility function for selecting appropriate parallel strategy for FutureManager.

Usage

1

Details

For a better performance, this function returns a multicore strategy for future plan. You may experience a long app startup time and some lag when running background processes using RStudio, because it uses multisession strategy.

See multicore and multisession for further details.

Note that you are not obliged to set the parallel strategy using fmParallelBackend. You can simply run plan(future::multicore) or plan(future::multicore).

Value

Returns a multicore parallel strategy if it is supported, or multisession if forking is not available in a given environment.

Examples

1

Boehringer-Ingelheim/FutureManager documentation built on June 16, 2021, 6:23 p.m.