Nothing
# The catalog of LAGO error codes. Each code names one kind of problem. A new
# refusal reuses a code when the problem is the same kind, and gets a new row
# otherwise. Codes are never renamed or reused for another problem, since
# programs read them. Each area of the package keeps its own rows in a data
# frame named .lago_errors_<area> (in R/errors_<area>.R), and the catalog is
# all of them. The tests check that every code used in R/ is in the catalog,
# that each code is listed once, and that every listed code is used.
.lago_errors_base <- data.frame(
code = c(
"bounds_order",
"cluster_id_missing",
"cost_fxn_type_invalid",
"internal",
"not_a_lago_result",
"time_effect_value_invalid"
),
description = c(
"A lower bound of an intervention component is above its upper bound.",
"A cluster id is missing.",
"The default cost function type is not one the package knows.",
"A problem inside the package, not in the input. Please report it.",
"The object given is not a result of lago_optimization(), lago_sensitivity() or lago_budget().",
"The time effect value is not a single non missing value."
),
stringsAsFactors = FALSE
)
lago_error_catalog_rows <- function() {
ns <- asNamespace("LAGOtrials")
parts <- grep("^\\.lago_errors_", ls(ns, all.names = TRUE), value = TRUE)
out <- do.call(rbind, lapply(sort(parts), function(p) get(p, envir = ns)))
out <- out[order(out$code), c("code", "description"), drop = FALSE]
rownames(out) <- NULL
out
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.