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

Never seeing the first progress message from cli_progress_along() #668

Open
asadow opened this issue Feb 2, 2024 · 1 comment
Open

Never seeing the first progress message from cli_progress_along() #668

asadow opened this issue Feb 2, 2024 · 1 comment
Labels
bug an unexpected problem or unintended behavior tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day

Comments

@asadow
Copy link

asadow commented Feb 2, 2024

cli_progress_along() seems to be skipping the first iteration, and after 2 seconds, the function outputs the message regarding the first iteration even though it is on the second?
 

library(cli)
lapply(cli_progress_along(1:2, 
                        format = "Downloading data file {cli::pb_current}"),
     function(i) {
Sys.sleep(2)
})
#> Downloading data file 1
#> [[1]]
#> NULL
#> 
#> [[2]]
#> NULL

Created on 2024-02-02 with reprex v2.0.2

@asadow asadow changed the title Never seeing the first progress message Never seeing the first progress message from cli_progress_along() Feb 2, 2024
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Jun 20, 2024
@gaborcsardi
Copy link
Member

Seems indeed like a bug.

@gaborcsardi gaborcsardi added the tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day
Projects
None yet
Development

No branches or pull requests

2 participants