Build a progress reporter for the per-protein / per-contrast loops
Source:R/progress.R
dot-make_progress.RdInternal factory used by model_analyse() and the contrast loops. The
returned object exposes $tick(len = 1, tokens = list()), the same contract
as progress::progress_bar, so call sites are agnostic to which reporter
they received.
Usage
.make_progress(
total,
label = NULL,
reporter = getOption("prolfqua.progress", NULL)
)Details
The reporter argument (defaulting to the prolfqua.progress option)
selects the mode:
NULL– the legacyprogress::progress_bar(terminal, unchanged).a
function(i, total, label)– a throttled user callback, e.g. one that callslogger::log_info()."message"– a throttledmessage()heartbeat with elapsed/ETA.