tidyverse / purrr

A functional programming toolkit for R
https://purrr.tidyverse.org/
Other
1.27k stars 274 forks source link

fix: `list_transpose()` takes into account all elements for the template #1136

Closed krlmlr closed 2 months ago

krlmlr commented 2 months ago

This introduces an error for the case when mixing named and unnamed elements, it was a silent error before.

Closes #1128.

krlmlr commented 2 months ago

Good catch, done. No idea how I missed committing the snapshots...

krlmlr commented 2 months ago

Do you still think it's worth having a try_catch() around this?

hadley commented 2 months ago

I think so? It's hard to tell that this message arises because by generating a default value for an argument.

hadley commented 2 months ago

Closes #1128.