tidyverse / purrr

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

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

Closed krlmlr closed 3 months ago

krlmlr commented 3 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 3 months ago

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

krlmlr commented 3 months ago

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

hadley commented 3 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 3 months ago

Closes #1128.