-
Notifications
You must be signed in to change notification settings - Fork 272
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
Two clarifications on the progress bar implementation #1047
Comments
That reasoning makes sense to me. |
Yes, it is on purpose. We set it to We set it before the call to
Yes, it is because of
Yes, |
Okay, that all makes sense to me. I agree that it is fine as is. |
cli_progress_set()
usesi
rather thani + 1
here in the looppurrr/src/map.c
Line 40 in 8b2c3cf
cli_progress_set()
after the call to.f
(brought about by thinking about Vignette: Increment progressor after iteration DavisVaughan/furrr#248)In particular, this example has two quirks:
show_after
or the fact that we are settingi = 0
on the first iteration.i = 4
, which corresponds to 80% which does show up, but then we do the last iteration and exit the loop. I assume that callingcli_progress_done()
will mark it as 100%, and that does seem to be the case if you setclear = FALSE
, but I still wonder if we should be usingi + 1
in the loop.CC @gaborcsardi
The text was updated successfully, but these errors were encountered: