Closed riccardoporreca closed 5 years ago
The quick fix has been reverted and a failing unit test has been introduced in 752578edd731cc576925249c059540111e4e5946
Alternative implementations of a refactored addins_factory()
implementation preserving expression:
https://github.com/miraisolutions/compareWith/blob/71f570db8a7de06ababcd5d3bbb803d6b1306e8a/R/addins.R#L18-L40
All are working, TBD which one we prefer. Main aspects of the two approaches
I have a general (but not strong) preference for (2) over (1) although it is a less trivial, more advanced implementation. Within (2), I like (2.1.1) more from a style perspective.
@RolandASc, @nfarabullini, Please go for the implementation you think is more suitable as part of the PR #29 review.
See comment to commit https://github.com/miraisolutions/compareWith/commit/7b532033f7bb28241228d0b6348e8c4f8c62e967#r33984145
The commit was in fact a quick fix to an issue causing the addin binding not to re-execute after the first usage. This is due to the value
body
and being (lazily) evaluated instead of being kept as expression. The fix should be reviewed to preserve the intended meaning and usage ofwith_addin_errors()
as described above.