parallel: Parallel execution in the purrr style

mcmapR Documentation

Parallel execution in the purrr style

Description

⁠mcmap*()⁠ are simple wrappers around parallel::mclapply() that allow the usage similar to the purrr::map() family.

Usage

mcmap(.x, .f, ...)

mcmap_lgl(.x, .f, ...)

mcmap_int(.x, .f, ...)

mcmap_dbl(.x, .f, ...)

mcmap_chr(.x, .f, ...)

mcmap_vec(.x, .f, ..., .ptype = NULL)

mcwalk(.x, .f, ...)

Arguments

.x

A vector or list to be mapped over.

.f

A function or formula to be applied to each element of .x.

...

Additional arguments passed to parallel::mclapply().

.ptype

A prototype to specify the output type.

Value

A list or vector of the same length as .x. purrr::list_simplify() is used to convert the result to a vector. mcwalk() returns the input .x invisibly.

See Also

https://furrr.futureverse.org/


heavywatal/rwtl documentation built on June 13, 2025, 7:39 a.m.