Skip to contents

error_msg

Usage

error_msg(msg)

Arguments

msg

error message to print

Value

Invisibly returns NULL; prints a formatted error message.

See also

Other console messaging helpers: info_msg(), print_footer(), print_header(), warning_msg()

Examples

try(error_msg("example error"))
#> Error in error_msg("example error") : 
#>   [2026-07-07 11:48:26] [ERROR]	example error
#>