R/errors_output.R

# The error codes of the output area: lago_report(), the presentation and
# methods of a lago result, the arguments of visualize_cost() and the
# arguments of lago_app(). See R/lago_error_catalog.R.
.lago_errors_output <- data.frame(
  code = c(
    "app_data_invalid",
    "bounds_length",
    "bounds_not_finite",
    "bounds_not_numeric",
    "component_names_empty",
    "component_names_missing",
    "component_names_not_character",
    "lago_result_without_data",
    "output_file_invalid",
    "output_file_not_html",
    "output_folder_is_file",
    "output_folder_missing",
    "output_folder_not_writable",
    "package_missing",
    "quiet_not_logical",
    "render_argument_not_allowed",
    "render_argument_partial",
    "render_argument_reserved",
    "render_argument_unnamed",
    "title_not_utf8",
    "unit_costs_length",
    "unit_costs_negative",
    "unit_costs_not_finite",
    "unit_costs_not_numeric"
  ),
  description = c(
    "The data given to the app is not a data frame, a lago result or NULL.",
    "The intervention bounds do not have one value for each component.",
    "An intervention bound is missing or not finite.",
    "The intervention bounds are not numbers.",
    "No component names were given.",
    "A component name is missing or empty.",
    "The component names are not text.",
    "The lago result does not carry the data of its call, so it must be fitted again.",
    "The output file is not one file path.",
    "The output file does not end in .html or .htm.",
    "The folder of the output file is a file.",
    "The folder named as the output file does not exist.",
    "The folder of the output file cannot be written in.",
    "A package that the function needs is not installed.",
    "The quiet argument is not TRUE or FALSE.",
    "An argument was given that would change the kind of output.",
    "An argument name is only the start of a full argument name.",
    "An argument was given that the function sets itself.",
    "An extra argument was given without a name.",
    "The title is not valid UTF-8 text.",
    "The unit costs do not have one value for each component.",
    "A unit cost is below zero.",
    "A unit cost is missing or not finite.",
    "The unit costs are not numbers."
  ),
  stringsAsFactors = FALSE
)

Try the LAGOtrials package in your browser

Any scripts or data that you put into this service are public.

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