Add or replace a model backend in the registry. Once registered, the backend name appears in the model-type dropdown and the custom-model-lines pipeline dispatches through it automatically.
Details
A backend is a named list with three required elements:
fitA function with signature
function(formula, data, ...)that returns a fitted model object. Extra UI fields from themultiDynamicInput()row are forwarded as....predictA function with signature
function(model, newdata)that returns a numeric vector of predicted y-values, one per row ofnewdata.validate_classesCharacter vector of class names. After fitting, the pipeline checks
inherits(model, validate_classes)and rejects the model if it fails.
Examples
# Register a custom backend for dose-response curves (requires drc)
if (requireNamespace("drc", quietly = TRUE)) {
}
#> NULL