nhs-r-community / NHSRplotthedots

An SPC package to support NHSE/I 'Making Data Count' programme
https://nhs-r-community.github.io/NHSRplotthedots/
Other
47 stars 21 forks source link

internal: replace magrittr pipe with base pipe #189

Open francisbarton opened 1 year ago

francisbarton commented 1 year ago

If the dev team agrees with this then I can do the editing work to replace the pipes. It will require some changes to the way the mockery tests are written as well as any formula type bits of code with ~ . I am posting this as an issue as a first step towards creating a PR - but if the general step is not approved then there is no point making the changes.

ThomUK commented 9 months ago

I for one would support this change in principle, as it helps ensures users are moving to recent versions of R, which is a good thing. However I'm unsure of priority vs other issues, as it adds no end-user benefit. If an enabling change for other features this would work in this issue's favour. Interested in other views.

francisbarton commented 9 months ago

The base pipe is already in the package in some places, after recent commits, and so the min R version is in the DESCRIPTION too.

Take your point about cost:benefit - there's a risk that doing this work breaks something and generates more work. But I think it should in most cases be fairly straightforward swapping from magrittr to base.

francisbarton commented 1 month ago

I'm still in favour of doing this and happy to action it if the dev team are in agreement. Will do this once currently open PRs are dealt with, otherwise things could get very messy!