View source: R/lago_conditions.R
| lago_error_codes | R Documentation |
Every refusal of the package is an error of class "lago_error". Beside its
message it carries a code from this table, the argument to change (when
there is one) and a fix, one sentence on how to fix the problem. A
program, such as an AI agent, can read these fields with
tryCatch(..., lago_error = function(e) e$code) instead of reading the
message. The codes are stable: a code is never reused for another problem.
lago_error_codes()
A data frame with one row per code and the columns code and
description.
head(lago_error_codes())
e <- tryCatch(
lago_optimization(data = NULL, outcome_name = "y", outcome_type = "binary"),
lago_error = function(e) e
)
e$code
e$fix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.