futureverse / futureverse/progressr

progressor(steps, props)

Open
#13 7 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
R
Stars
299
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Add support for realitive sizes of progression steps, e.g.
```r
progress <- progressor(steps = 6L, props = c(1/3,3/3,2/3))
progress <- progressor(steps = 4L, props = c(1,3,2)) ## automatically rescaled
```
Alternatively,
```r
progress <- progressor(step_sizes = c(1L, 3L, 2L))
```
where `steps = length(step_sizes)` by default.

It would be neat if `props` can be modified along the way, e.g. if one of the steps end up finding a shortcut (because of input data) and only needing, say, 50% of its processing "time".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.