traumar 1.2.4
-
Added the functions to perform all data validation. These functions take the
form ofvalidate_*(), such asvalidate_character_factor(). After exploring
options from other packages to lean on existing methods to validate data via
functional programming, the decision was made to create functions "in-house"
to avoid issues with adding another dependency. Thevalidate_*()family of
functions is not exported fromtraumar. -
Updated unit tests throughout the package given the addition of new data
validation methodology. -
Ensured that plenty of comments are provided throughout the functions in the
package to enhance understanding of the code and collaboration. -
pretty_number()now uses adigitsargument instead ofn_decimal.
n_decimalhas been deprecated and will now issue a warning, but the function
will still work using then_decimalargument. In a later release,
n_decimalwill be fully deprecated. -
rmm()andrm_bin_summary()will now fail if theseedargument is not of
class numeric or integer. -
Added section headers throughout the code base to make navigation within most
modern IDEs easier. -
Error/warning messages will now directly name the function in the call stack
that is most helpful. For example, if some data validation triggers an error
withintraumar::seqic_indicator1(), thentraumar::seqic_indicator1()will
show up in the error message, instead of some other function such as acli
function or one of the newvalidate_*()functions. -
Improved
small_count_label()code readability in the control flow chunk
where values less than the cutoff are manipulated depending on user input. -
trauma_performance()now acts as a wrapper fortrauma_case_mix()as
trauma_performance()now callstrauma_case_mix()under the hood instead of
explicitly performing the same operations. This makes the functionality more
maintainable for any future iterations.