functions for handling errors
Functions
error_handler()
: selects error handler to useerror_print()
: prints an error message to the consoleerror_email()
: sends an error message to an email addresserror_calling_handler()
: global error condition handler, intended to be used withrlang::try_fetch
because it both adds trace information (as a calling handler) and does error logging (as an error handler)