r-lib / cli

Tools for making beautiful & useful command line interfaces
https://cli.r-lib.org/
Other
650 stars 70 forks source link

Progress bar in RStudio Background Job #732

Open dominicroye opened 3 weeks ago

dominicroye commented 3 weeks ago

I opened an issue for the progressr package, but it seems to be an problem of the cli package, see
https://github.com/HenrikBengtsson/progressr/issues/174#issuecomment-2415780091

image

gaborcsardi commented 3 weeks ago

FWIW, this does not work either:

Sys.sleep(1)
cat("foo")
Sys.sleep(1)
cat("bar")
Sys.sleep(1)
cat("\rerase")
Sys.sleep(1)
cat("\n")

so seemingly this is an issue with RStudio.

Sorry, meant to comment here....