Use native pipe |> and update minimum R version to 4.1.0? #916
Labels
question
style/refactor
issues related to cleaning up the code that won't change the user experience
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?The text was updated successfully, but these errors were encountered: