I am wondering how to convert this example code to purrr style by using the walk() function instead?
library(cli)
n <- 10
cli_alert_info("About to start downloads of {n} file{?s}")
i <- 0
cli_progress_step("Got {i}/{n} {qty(i)}file{?s}.")
for (i in seq_len(n)) {
Sys.sleep(0.5)
cli_progress_update()
}
Any comments and suggestions are greatly appreciated.