purrr::map, but promise-aware: the
function is permitted to return promises, and while
lapply returns a list,
promise_map returns a promise that resolves to a similar list (of resolved
values only, no promises).
A vector (atomic or list) or an expression object (but not a promise). Other objects (including classed objects) will be coerced by base::as.list.
The function to be applied to each element of
Optional arguments to
promise_map processes elements of
.x serially; that is, if
returns a promise, then
.f(.x[]) will not be invoked until that promise
is resolved. If any such promise rejects (errors), then the promise returned
promise_map immediately rejects with that err.
A promise that resolves to a list (of values, not promises).
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.