Skip to contents

functions for handling errors

Usage

error_handler(error)

error_print(error)

error_email(error)

error_calling_handler(error)

Arguments

error

error caught

Details

error_handler

Functions

  • error_handler(): selects error handler to use

  • error_print(): prints an error message to the console

  • error_email(): sends an error message to an email address

  • error_calling_handler(): global error condition handler, intended to be used with rlang::try_fetch because it both adds trace information (as a calling handler) and does error logging (as an error handler)