Closed egnha closed 7 years ago
Changing the argument signature as proposed would be a mistake, as it'd make firmly
more awkward to use; for example, firmly(f, ~is.numeric)
would not longer work, as you'd need to write instead firmly(.f = f, .checklist = list(), ~is.numeric)
to avoid matching .checklist
to either .f
or ...
.
Cf. #19
To keep checks and function header in close proximity, you can use magrittr's
%>%
operator:By permuting the argument signature of
firmly
fromto
it'd be possible to slightly simplify the above to
eliminating the need to explicitly specify
.f =
and.checklist = .
.This is a straightforward fix (albeit somewhat tedious to implement, since many tests will need to be edited to accommodate the new call signature).