This function logs a message to the SeaSondeR logging system and aborts execution. It prefixes the abort message with the name of the calling function.
Arguments
- msg
A character string indicating the message.
- calling_function
Function where the condition occurred. If NULL (default), the code determines the caller.
- ...
Additional arguments passed to
rlang::abort
.
Examples
my_function <- function() {
seasonder_logAndAbort("This is a message")
}
# Demonstrate abort without stopping execution
try(my_function(), silent = TRUE)