powered by
Log an error message and abort
log_error(..., wrap = TRUE, .envir = parent.frame())
Character strings to log. Supports glue-style interpolation.
Logical. Whether to wrap long messages (default TRUE).
Environment for glue interpolation (default: parent frame).
if (FALSE) { log_error("Critical error occurred") file_path <- "missing.csv" log_error("File not found: {file_path}") }
Run the code above in your browser using DataLab