cli icon indicating copy to clipboard operation
cli copied to clipboard

Progress bar for `furrr::future_map` and `future.apply::future_lapply` functions

Open MarkArcePerez opened this issue 3 years ago • 1 comments

I know that the function cli_progress_along is experimental. I ran the code below got a progress bar showing while updating me as my code ran until completion.

lapply_res <- lapply(cli_progress_along(x), fun)

I tried switch the lapply in favor for future_lapply/future_map but no progress bar is generated when testing out these functions

fl_res <- future_lapply(cli_progress_along(x), fun) fm_res <- future_map(cli_progress_along(x), fun)

MarkArcePerez avatar Nov 25 '23 03:11 MarkArcePerez

I am fairly sure that it is not possible to makeprogress_along work with future, I am afraid.

gaborcsardi avatar Nov 25 '23 08:11 gaborcsardi