Related to #755. It seems that progress bars update less frequently when they run behind callr processes.
out <- callr::r(
\() {
library(cli)
clean <- function() {
options(cli.num_colors = 256, cli.dynamic = TRUE)
cli_progress_bar("Cleaning data", total = 100)
for (i in 1:100) {
Sys.sleep(5/100)
cli_progress_update()
}
cli_progress_done()
}
clean()
},
show = TRUE,
stderr = "2>&1"
)

It would be nice if they updated with the same frequency and timing as in the local process.
clean <- function() {
options(cli.num_colors = 256, cli.dynamic = TRUE)
cli_progress_bar("Cleaning data", total = 100)
for (i in 1:100) {
Sys.sleep(5/100)
cli_progress_update()
}
cli_progress_done()
}
clean()

Related to #755. It seems that progress bars update less frequently when they run behind
callrprocesses.It would be nice if they updated with the same frequency and timing as in the local process.