View source: R/seasonder_log.R
seasonder_logAndAbort | R Documentation |
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.
seasonder_logAndAbort(msg, calling_function = NULL, ...)
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 |
This function does not return as it always aborts execution.
my_function <- function() {
seasonder_logAndAbort("This is a message")
}
# Demonstrate abort without stopping execution
try(my_function(), silent = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.