Closed cimentadaj closed 4 years ago
I'll look into the smooth_age_5() Errors being thrown
fixed- now uses match.arg instead of the homebrew solution. However, looking inside it comes over as sloppy- the original intent was to allow for flexible argument naming, and now it's strict. For example "Karup-King-Newton"
has to be "KKN"
now, and "cf"
will no longer work for "Carrier-Farrag"
. Making a huge options list also seems silly, since the pre-imagined options before were at least forced to be all lowercase. hmmmm. No harm just less flexible now.
This PR does three things:
interp
when no method is chosen.As for the last, I see you were trying to do some regular expression matching but
match.arg
already does this by default. I left a comment showing exactly this. We need to make sure I didn't break anything with this change but at least from mydevtools::check
, all is fine.