powered by
Throws a timestamped warning instead of stopping the program. This is the default exception handler used by Loggers.
default_exception_handler(e)
The warning as character vector
character
an error condition object
error condition
tryCatch(stop("an error has occurred"), error = default_exception_handler)
Run the code above in your browser using DataLab