future_method: Setup a future method

View source: R/parallel.R

future_methodR Documentation

Setup a future method

Description

Setup a future method

Usage

future_method(method = NULL, remotes = NULL)

Arguments

method

if not NULL sets a 'future' method options

  • sequential: Resolves futures sequentially in the current R process.

  • transparent: Resolves futures sequentially in the current R process and assignments will be done to the calling environment. Early stopping is enabled by default.

  • multisession: Resolves futures asynchronously (in parallel) in separate R sessions running in the background on the same machine.

  • multicore: Resolves futures asynchronously (in parallel) in separate forked R processes running in the background on the same machine. Not supported on Windows.

  • multiprocess: If multicore evaluation is supported, that will be used, otherwise multisession evaluation will be used.

  • cluster: Resolves futures asynchronously (in parallel) in separate R sessions running typically on one or more machines.

  • remote: Resolves futures asynchronously in a separate R session running on a separate machine, typically on a different network. #'

remotes

if not NULL a vector of remote IP addresses

Value

invisible

Examples

future_method("multicore")

abresler/asbtools documentation built on July 28, 2022, 11:04 p.m.