Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nested progressbars #1077

Closed
DanChaltiel opened this issue May 2, 2023 · 1 comment
Closed

Support nested progressbars #1077

DanChaltiel opened this issue May 2, 2023 · 1 comment

Comments

@DanChaltiel
Copy link

Hi,

It would be very nice if progress bars could be nested.

For instance, consider this code:

library(purrr)
pb_out = list(format="Outer: {pb_current}/{pb_total} {pb_bar} {pb_percent}")
pb_in = list(format="\tInner: {pb_current}/{pb_total} {pb_bar} {pb_percent}")

walk(1:10, ~{
  walk(1:5, ~{
    Sys.sleep(1)
  }, .progress=pb_in)
}, .progress=pb_out)

As for purrr 1.0.1, each progress bar appears on the same line and overwrites the other one.

If the inner could be on the next row and leave the outer be, it would be a great feature!

@hadley
Copy link
Member

hadley commented Jul 26, 2023

Unfortunately this isn't possible due to limited support for consoles to change lines in this way.

@hadley hadley closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants