
Decide whether a hierarchy gate rests on evidence or on the fallback constant
Source:R/gate-autofix.R
gate_needs_autofix.RdSeparated from apply_gate_hierarchy() so the decision is testable on its
own and so the reason travels with it as text, rather than being implied by
a threshold silently becoming NA.
Usage
gate_needs_autofix(
source,
enabled = FALSE,
kept = NA_real_,
parent = NA_real_,
min_retention = 0.05
)Arguments
- source
The
sourcestringresolve_threshold()returned.- enabled
Whether
--auto-fix-gatesis set.