Register an idiographic estimator or workflow
Arguments
- name
Unique canonical method name.
- fit
A function, or a single character string naming a function.
- aliases
Optional alternative method names.
- kind
Either
"estimator"or"workflow".- description
Short human-readable description.
- result_class
Optional result classes used to infer equivalence metadata for objects produced by direct calls to the estimator.
- equivalence
A named list describing the validation status, reference, scope, tolerance, and notes. Missing fields receive conservative defaults.
- overwrite
Logical. Replace an existing registration with the same canonical name. Aliases owned by another method are never overwritten.
Examples
demo_fitter <- function(data, ...) structure(list(data = data),
class = "demo_result")
register_estimator("demo", demo_fitter, result_class = "demo_result")
get_estimator("demo")
#> function (data, ...)
#> structure(list(data = data), class = "demo_result")
#> <environment: 0x564eb6b3b890>
remove_estimator("demo")