lago_error_codes: The codes of the errors LAGOtrials gives

View source: R/lago_conditions.R

lago_error_codesR Documentation

The codes of the errors LAGOtrials gives

Description

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.

Usage

lago_error_codes()

Value

A data frame with one row per code and the columns code and description.

Examples

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

LAGOtrials documentation built on Dec. 4, 2026, 5:10 p.m.