Provides error handling with customizable success, error, and completion messages. Wraps expressions in a tryCatch block and displays appropriate notifications.
Provides error handling with customizable success, error, and completion messages. Wraps expressions in a tryCatch block and displays appropriate notifications.
Provides error handling with customizable success, error, and completion messages. Wraps expressions in a tryCatch block and displays appropriate notifications.
handle_error(expr, success_msg = NULL, error_msg = NULL, finally_msg = NULL)handle_error(expr, success_msg = NULL, error_msg = NULL, finally_msg = NULL)
handle_error(expr, success_msg = NULL, error_msg = NULL, finally_msg = NULL)
Result of the expression or NULL if error occurs
Result of the expression or NULL if error occurs
Result of the expression or NULL if error occurs
Expression to evaluate
Optional character string for success notification
Optional character string for error notification
Optional character string for completion notification