cliapp (version 0.1.1)

cli_progress_bar: CLI progress bar

Description

A progress bar using the progress package

Usage

cli_progress_bar(...)

Arguments

...

All arguments are passed to the constuctor of the progress::progress_bar class.

Value

A remote progress bar object that can be used the same way as progress::progress_bar, see examples below.

Examples

Run this code
# NOT RUN {
{
  p <- cli_progress_bar(total = 10)
  cli_alert_info("Starting computation")
  for (i in 1:10) { p$tick(); Sys.sleep(0.2) }
  cli_alert_success("Done")
}
# }

Run the code above in your browser using DataCamp Workspace