progress_aggregator: Aggregate Progression Conditions

Description Usage Arguments Value Examples

View source: R/progress_aggregator.R

Description

Aggregate Progression Conditions

Usage

1

Arguments

progress

A progressor function.

Value

A function of class progress_aggregator.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(progressr)

message("progress_aggregator() ...")

with_progress({
  progress <- progressor(steps = 4L)
  relay_progress <- progress_aggregator(progress)
  progress()
  relay_progress(slow_sum(1:3))
  relay_progress(slow_sum(1:10))
  progress()
})

message("progress_aggregator() ... done")

progressr documentation built on Sept. 24, 2021, 5:07 p.m.