purrr icon indicating copy to clipboard operation
purrr copied to clipboard

A functional programming toolkit for R

Results 146 purrr issues
Sort by recently updated
recently updated
newest added

I'm looking for the following behavior so that I can use `pivot_wider() %>% mutate(across(..., ~ list_c(.x, keep_empty = TRUE)))` as a more robust replacement for `tidyr::spread(convert = TRUE)` . I...

feature

For me the main advantage of a for loop over `map()` in an interactive context is that I can easily continue the for loop after an interruption. An example workflow...

feature

- This pull request updates r4ds() to r4ds 2e (https://r4ds.hadley.nz/) on the package website. - **README.md** is updated by running `devtools::build_readme()`.

Closes #1099. The idea is to easily continue a call to `map()` and keep intermediate results. ``` r devtools::load_all("~/GitHub/purrr/") #> ℹ Loading purrr slow_function ℹ In index: 5. #> Caused...

list_cbind calls vec_cbind which produces "packed data frame columns" with named inputs. I am not familiar with packed data frame columns so was expecting to get a data frame with...

documentation
flatten :earth_americas:

I added this to dplyr, but it probably belongs in purrr and would make for an easier transition path for the deprecated `rlang::flatten_if()` and `rlang::squash()` functions See https://github.com/r-lib/rlang/pull/1576 and https://github.com/tidyverse/dplyr/pull/6759...

feature
flatten :earth_americas:

With the current design of the `map_depth` function, would it be possible to also add progress bar support?

feature
map :world_map:

Would be useful to have a {purrr} adverb that is similar to {httr2}'s `req_retry()`. I _think(?)_ adding a `max_tries = Inf` (or `NULL` default) param to `insistently()` wouldn't scope-creep too...

feature
adverb :books:

In javascript, there is a built-in function [Array.prototype.sort()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) that works on an array (like an R list) and takes a user-defined binary function to define ordering. ```js my_array.sort((a, b) =>...

feature
list 🧦