This PR removes the use of S3 dispatch to call internal distribution parameter cleaning functions and moves to using switch(). A bullet point is added to the design_principles.Rmd vignette on using S3 dispatch exclusively for exported functions.
The internal clean_epidist_params() is renamed with a dot prefix (.clean_epidist_params()). A bullet point is added to the design_principles.Rmd vignette on the use of dot prefixes for internal functions.
The .clean_epidist_params_*() distribution specific cleaning functions have been simplified thanks to having stricter parameter matching.
Documentation and unit tests have been updated where needed.
This PR removes the use of S3 dispatch to call internal distribution parameter cleaning functions and moves to using
switch()
. A bullet point is added to thedesign_principles.Rmd
vignette on using S3 dispatch exclusively for exported functions.The internal
clean_epidist_params()
is renamed with a dot prefix (.clean_epidist_params()
). A bullet point is added to thedesign_principles.Rmd
vignette on the use of dot prefixes for internal functions.The
.clean_epidist_params_*()
distribution specific cleaning functions have been simplified thanks to having stricter parameter matching.Documentation and unit tests have been updated where needed.