progressr
progressr copied to clipboard
Progress bar in RStudio Background Job
I use a progress bar for my function in future_map() running as a background job in RStudio. It works with enable = TRUE
, but is it possible to avoid repeating the bar each update?
progressr::handlers("cli")
progressr::with_progress({
p <- progressr::progressor(steps = mod_len)
furrr::future_map(1:mod_len, .function_, p = p)
}, enable = TRUE)