A named list may also be supplied instead of a character vector, where the
names are the collection options. The value for .progress is passed to the
cli progress bar: a character value sets the bar name, and a list is passed
as named parameters to cli::cli_progress_bar. List elements not matching
the arguments of cli::cli_progress_bar are ignored, as are total,
current, auto_terminate and .envir, which are set by mirai. Examples:
c(.stop = TRUE, .progress = "bar name") or
list(.stop = TRUE, .progress = list(name = "bar", type = "tasks"))
Supplying an integer for .progress instead attaches to an existing cli
progress bar: its name supplies the bar id, and its value the amount to
increment per result collected, e.g. list(.progress = setNames(1L, id))
where id is the value returned by cli::cli_progress_bar(). The bar is
neither created nor closed by mirai: its lifecycle remains entirely with the
caller. This allows a single progress bar to span multiple map operations.