tidyverse / purrr

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

Soft deprecation warnings of `vctrs_vec_compat()` don't bubble up #1004

Closed DavisVaughan closed 1 year ago

DavisVaughan commented 2 years ago

i.e. should see a warning here

purrr::map(pairlist(1, 2), identity)
#> [[1]]
#> [1] 1
#> 
#> [[2]]
#> [1] 2

I think we need to pass the user_env down to vctrs_vec_compat(), which may be annoying

grep for any usage of deprecate_soft() to make sure we get them all

hadley commented 1 year ago

Two other functions need similar tweaks: deprec_rerun() and where_at().