Closed Bisaloo closed 1 month ago
@elray1 what do you think about using the magrittr
vs base R pipe? Is our stance still the same as on that issue, i.e. the former is preferable to avoid the dependency on R 4.1?
I agree with Hugo's comment -- using the magrittr pipe already felt like a borderline decision a couple of years ago, and i'm good with moving on. (Actually, reading more carefully, maybe I got Hugo's comment backwards. But regardless, I think that at this point I'd vote to standardize on the base R pipe)
Ok, I can make the changes to update the pipe to the standard one, then merge this pull request
As promised a couple of months ago when reviewing the manuscript.
Overall, the codebase seems in great condition to me so I didn't have much changes to propose.
Here is a summary of the minor changes or fixes:
f04685cadb092867d9124e6a80178f6f79812d94 uses boolean arithmetic to simplify counting
FALSE
s and avoids comparing a logical toFALSE
which can quickly cause headaches :dizzy_face:Created on 2024-07-19 with reprex v2.1.1
unlist()
. This has the nice added benefit that output type is checked, which can prevent errors when refactoring later.R CMD check
and motivates the need for the following commit