usethis icon indicating copy to clipboard operation
usethis copied to clipboard

`use_tidy_base_pipe()`

Open hadley opened this issue 1 year ago • 1 comments

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.

hadley avatar Jul 17 '24 12:07 hadley

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:

  • Gather links to the relevant purrr PR(s).
  • Study the purrr example and enumerate the main "moves" that are necessary.
  • (Maybe?) create a draft PR that starts to chip away at the problem.

jennybc avatar Jul 22 '24 20:07 jennybc

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.

hadley avatar Oct 07 '24 15:10 hadley