r-lib / usethis

Set up commonly used 📦 components
https://usethis.r-lib.org/
Other
859 stars 286 forks source link

`use_tidy_base_pipe()` #2020

Closed hadley closed 1 week ago

hadley commented 3 months ago

Wrap up the code we used in purrr to make it easy for other packages to use the base pipe in examples.

A stretch goal would be to also figure out the regexp to replace %>% with |> inside roxygen comments and vignettes.

jennybc commented 2 months ago

I'm putting the tidyverse dev day label on this, not because I think it can be settled in one day. Rather, this would be a research project. Some TODOs to get thing started:

hadley commented 1 week ago

We've waited so long it's not really worth doing this; we might as well just wait another 6 months until we can use R 4.1 eveywhere.