Closed nikosbosse closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.30%. Comparing base (
a8ae1d0
) to head (c2e0d49
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
As mentioned in #447, a few functions currently lack input checks. This PR adds input checks to various functions. Notable changes:
metrics
default argument forget_correlations()
toget_metrics(scores)
get_forecast_unit()
now errors if the input is not adata.frame
. This means I also had to updateprint()
to add atry()
-statement aroundget_forecast_unit()
and update the messages slightlyTo avoid another mega-PR, I looked at all functions up to and including
metrics-validate.R
. I'll do the rest in a second PR.Reminder for future me: look at docs for
quantile_score()
once again and see whether arguments are documented correctly.Checklist
lintr::lint_package()
to check for style issues introduced by my changes.