r4ss icon indicating copy to clipboard operation
r4ss copied to clipboard

Use native pipe |> and update minimum R version to 4.1.0?

Open iantaylor-NOAA opened this issue 1 year ago • 0 comments

The r4ss package was slow to adopt any tidyverse stuff (because I was slow to learn it), but since January 2023 has depended on {dplyr} and {magrittr} and now has a variety of %>% throughout the code. The R native pipe operator |> has been around since May 2021 and I've started using it in my day-to-day coding.

There's a discussion about this here but the solution used within tidyverse packages seems more work than just sticking with %>% https://www.tidyverse.org/blog/2023/04/base-vs-magrittr-pipe/#using-the-native-pipe-in-packages

I'm wondering if we can start using |> in r4ss which would require changing the minimum R version in the DESCRIPTION from 3.5.0 (from April 2018) to 4.1.0. Is anyone aware of r4ss users who's R version is more than 3 years old or have other objections to making the change?

iantaylor-NOAA avatar Feb 21 '24 19:02 iantaylor-NOAA