simplifies and updates apply_metrics() such that it doesn't produce a data.table warning anymore when a function fails
adds the name of the metric to the call of run_safely() to improve warnings. @jamesmbaazam you were thinking about this as well. It still doesn't produce errors, but I think it's a nice step.
makes sure that run_safely() is no longer exported
updates tests
Checklist
[x] My PR is based on a package issue and I have explicitly linked it.
[x] I have included the target issue or issues in the PR title as follows: issue-number: PR title
[x] I have tested my changes locally.
[x] I have added or updated unit tests where necessary.
[x] I have updated the documentation if required.
[x] I have built the package locally and run rebuilt docs using roxygen2.
[x] My code follows the established coding standards and I have run lintr::lint_package() to check for style issues introduced by my changes.
[ ] ~I have added a news item linked to this PR.~
[ ] I have reviewed CI checks for this PR and addressed them as far as I am able.
Description
This PR closes #801.
This PR
apply_metrics()
such that it doesn't produce adata.table
warning anymore when a function failsrun_safely()
to improve warnings. @jamesmbaazam you were thinking about this as well. It still doesn't produce errors, but I think it's a nice step.run_safely()
is no longer exportedChecklist
lintr::lint_package()
to check for style issues introduced by my changes.