err_msg: Function for dealing with error messages when using tryCatch

View source: R/extract_stats.R

err_msgR Documentation

Function for dealing with error messages when using tryCatch

Description

Function for dealing with error messages when using tryCatch

Usage

err_msg(e, r_msg = TRUE, user_msg = NULL, to_return = NA)

Arguments

e

error message from function

r_msg

print the error message given by the function

user_msg

a message given by the user

to_return

what should be returned if there is an error

Value

what is chosen by the user to be returned, default = NA


thomasbattram/usefunc documentation built on April 24, 2023, 1:46 p.m.