View source: R/future-invoke-map.R
future_invoke_map | R Documentation |
These functions work exactly the same as purrr::invoke_map()
functions, but
allow you to invoke in parallel.
future_invoke_map( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE ) future_invoke_map_chr( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE ) future_invoke_map_dbl( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE ) future_invoke_map_int( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE ) future_invoke_map_lgl( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE ) future_invoke_map_raw( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE ) future_invoke_map_dfr( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE ) future_invoke_map_dfc( .f, .x = list(NULL), ..., .env = NULL, .options = furrr_options(), .env_globals = parent.frame(), .progress = FALSE )
.f |
A list of functions. |
.x |
A list of argument-lists the same length as |
... |
Additional arguments passed to each function. |
.env |
Environment in which |
.options |
The |
.env_globals |
The environment to look for globals required by |
.progress |
A single logical. Should a progress bar be displayed? Only works with multisession, multicore, and multiprocess futures. Note that if a multicore/multisession future falls back to sequential, then a progress bar will not be displayed. Warning: The |
plan(multisession, workers = 2) df <- dplyr::tibble( f = c("runif", "rpois", "rnorm"), params = list( list(n = 10), list(n = 5, lambda = 10), list(n = 10, mean = -3, sd = 10) ) ) future_invoke_map(df$f, df$params, .options = furrr_options(seed = 123))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.