Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

future_options

Deprecated furrr options


Description

Deprecated lifecycle

future_options() has been deprecated in favor of furrr_options() as of furrr 0.2.0.

Usage

future_options(
  globals = TRUE,
  packages = NULL,
  seed = FALSE,
  lazy = FALSE,
  scheduling = 1
)

Arguments

globals

A logical, a character vector, a named list, or NULL for controlling how globals are handled. For details, see the Global variables section below.

packages

A character vector, or NULL. If supplied, this specifies packages that are guaranteed to be attached in the R environment where the future is evaluated.

seed

A logical, an integer of length 1 or 7, a list of length(.x) with pre-generated random seeds, or NULL. For details, see the Reproducible random number generation (RNG) section below.

lazy

A logical. Specifies whether futures should be resolved lazily or eagerly.

scheduling

A single integer, logical, or Inf. This argument controls the average number of futures ("chunks") per worker.

  • If 0, then a single future is used to process all elements of .x.

  • If 1 or TRUE, then one future per worker is used.

  • If 2, then each worker will process two futures (provided there are enough elements in .x).

  • If Inf or FALSE, then one future per element of .x is used.

This argument is only used if chunk_size is NULL.

Examples

future_options()

furrr

Apply Mapping Functions in Parallel using Futures

v0.2.2
MIT + file LICENSE
Authors
Davis Vaughan [aut, cre], Matt Dancho [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.