Create a Progressor Function that Signals Progress Updates
progressor(
steps = length(along),
along = NULL,
offset = 0L,
scale = 1L,
transform = function(steps) scale * steps + offset,
label = NA_character_,
initiate = TRUE,
auto_finish = TRUE
)
(integer) Number of progressing steps.
(vector; alternative) Alternative that sets
steps = length(along)
.
(integer; optional) scale and offset applying transform
steps <- scale * steps + offset
.
(function; optional) A function that takes the effective
number of steps
as input and returns another finite and non-negative
number of steps.
(character) A label.
(logical) If TRUE, the progressor will signal a progression 'initiate' condition when created.
(logical) If TRUE, then the progressor will signal a progression 'finish' condition as soon as the last step has been reached.
A function of class progressor
.