Skip to content

Commit da3dc98

Browse files
committed
Fix the number of progressor steps in the relay_progress example
The steps= argument of progressor did not match the actual number of emitted progressions or rather the sum of their `amount=`s (there are progressions with amount=0) as well in slow_sum()
1 parent 716d2e7 commit da3dc98

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

incl/progress_aggregator.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ library(progressr)
33
message("progress_aggregator() ...")
44

55
with_progress({
6-
progress <- progressor(steps = 4L)
6+
progress <- progressor(steps = 8L)
77
relay_progress <- progress_aggregator(progress)
88
progress()
9-
relay_progress(slow_sum(1:3))
10-
relay_progress(slow_sum(1:10))
9+
relay_progress(slow_sum(1:2))
10+
relay_progress(slow_sum(1:4))
1111
progress()
1212
})
1313

man/progress_aggregator.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)