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

progress bars from purrr doesn't render #411

Open
StaffanBetner opened this issue Apr 12, 2024 · 2 comments
Open

progress bars from purrr doesn't render #411

StaffanBetner opened this issue Apr 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@StaffanBetner
Copy link

This is a simple example that doesn't show an expected progress bar:

library(purrr)
walk(1:10, ~Sys.sleep(0.5), .progress = TRUE)
@georgestagg
Copy link
Member

Thanks for reporting this! It looks like any kind of cli progress bars are not working in the webR demo application, not just from purrr.

@georgestagg georgestagg added the bug Something isn't working label Apr 17, 2024
@HenrikBengtsson
Copy link

FWIW, similarly, it looks like output to stdout/stderr cannot be refreshed/flushed while running, e.g.

for (kk in 0:99) { cat(sprintf("%3d\r", kk)); Sys.sleep(0.1); flush(stdout()) }; cat("\n")

Same for

for (kk in 0:99) { cat(sprintf("\r%3d", kk)); Sys.sleep(0.1); flush(stdout()) }; cat("\n")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants