Update package to use |> instead of %>%
Is your feature request related to a problem? Please describe:
The package has too many dependencies. The package uses both the base and magrittr pipe.
Describe the solution you'd like:
Suggest to use the native pipe and remove dependance on magrittr: https://www.tidyverse.org/blog/2023/04/base-vs-magrittr-pipe/
Current approach to this was to:
- Find-replace all (~22 files)
- Go through and revert to get tests passing (~4 files)
Some will only require simple updates, but decided it was better to go through and do those one-by-one. Likely over reverted to get to passing faster.
These should be quick for someone with a better grasp of piping and placeholders:
- ResultFlagsDependent.R - One update needs to be made ~ line 911
- DataDiscoveryRetrieval.R - Two updates (but they're the same) ~ line 402 & 385
The other files are now:
-
R/GeospatialFunctions.R
-
R/ATTAINSCrosswalks.R
-
R/ContinuousDataFunctions.R
-
R/CriteriaMethods.R
-
R/MaintenanceScheduled.R (new)
-
R/Utilities.R (1 instance)
@cristinamullin @jbousquin I just pushed to #681 with updates from develop but I haven't finished going through GeospatialFuntions.R and reconciling / fixing everything. Also wondering about beginning of Utilities.R with description of magrittr (modify or delete)?
@cristinamullin @jbousquin I just pushed to #681 with updates from develop but I haven't finished going through GeospatialFuntions.R and reconciling / fixing everything. Also wondering about beginning of Utilities.R with description of magrittr (modify or delete)?
I believe we can delete the description of magrittr and also remove it as a dependency in the description file.
@cristinamullin @jbousquin I just pushed to #681 with updates from develop but I haven't finished going through GeospatialFuntions.R and reconciling / fixing everything. Also wondering about beginning of Utilities.R with description of magrittr (modify or delete)?
I believe we can delete the description of magrittr and also remove it as a dependency in the description file.
Just pushed branch with that removed from Utilities.R - still work to do but didn't have a chance to get back to today