Skip to contents

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.

Usage

making_tidy(obj, model_type)

Arguments

obj

A stat function built with HTEST_FN() or MODEL_FN() (e.g. TTEST).

model_type

An S7 variable mapper <var_id> class (e.g. x_by, S7::class_formula).

Value

A making_tidy_call object, consumed by %<-%.

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, ...) { ... }
)