making_tidy() is the escape hatch for registering tidy methods when a
variant's fn intentionally returns a non-class_stat_infer object
(plain list, S3, S4, or R6). When fn returns a class_stat_infer
subclass, implement auto_tidy() on the result class instead — no
registration needed.
Arguments
- obj
A stat function built with
HTEST_FN()orMODEL_FN()(e.g.TTEST).- model_type
An S7 variable mapper
<var_id>class (e.g.x_by,S7::class_formula).
Examples
# Only needed when fn returns a non-class_stat_infer object.
# Prefer implementing auto_tidy() on your result class instead.
making_tidy(TTEST, x_by) %<-% method_tidy(
default = function(.x, ...) { ... },
boot = function(.x, ...) { ... }
)