traitecoevo/hmde

Error handling for rmot_assign_data

Closed this issue · 3 comments

rmot_assign_data(mtcars) this is bad

#TODO: Check names are in model_template
abort if not model template

4 years out of date but still a good resource:

For tidyverse like error messages:

{galah-R} the package has some specific .R file containing the functions that checks the inputs of their functions

To do:

  • Change error handling to use stop() properly
  • Have checks on data types as well as size structures
  • Standardise error feedback and get a second pair of eyes on what error messages say.

Finalised testing for assign_data function:
ef660c1