This function will print a message and stop execution of the code. This should only be used if the application should terminate.

logger.severe(msg, ..., wrap = TRUE)

Arguments

msg

the message that should be printed.

...

any additional text that should be printed.

wrap

Whether or not to wrap long messages (default = TRUE). If FALSE, preserve format of original string. Useful for specifically formatted error messages.

Details

set logger.setQuitOnSevere(FALSE). To avoid terminating the session. This is set by default to TRUE if interactive or running inside Rstudio.

Examples

# NOT RUN {
logger.severe('missing parameters')
# }