seasonder_logAndAbort {SeaSondeR} | R Documentation |
Log and Abort Message in SeaSondeR
Description
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.
Usage
seasonder_logAndAbort(msg, calling_function = NULL, ...)
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 |
Value
This function does not return as it always aborts execution.
Examples
my_function <- function() {
seasonder_logAndAbort("This is a message")
}
# Demonstrate abort without stopping execution
try(my_function(), silent = TRUE)
[Package SeaSondeR version 0.2.8 Index]