Log an error message and abort
Arguments
- ...
Character strings to log. Supports glue-style interpolation.
- wrap
Logical. Whether to wrap long messages (default TRUE).
- .envir
Environment for glue interpolation (default: parent frame).
Examples
if (FALSE) { # \dontrun{
log_error("Critical error occurred")
file_path <- "missing.csv"
log_error("File not found: {file_path}")
} # }