Progress bars

cli
purrr
walk
progress
Author
Affiliations

Layal Christine Lettry

cynkra GmbH

University of Fribourg, Dept. of Informatics, ASAM Group

Published

October 12, 2023

Keeping track of the code’s progress

Progress bars

Sometimes, you want to include a progress bar in your pipeline, to see how much code has been executed and how much is left.

Here are some possibilities to do that.

The purrr package

purrr::walk(1:3, Sys.sleep, .progress = TRUE)

The cli package

You can also create a progress bar with the cli package. Please refer to this article which presents several possibilities to create a progress bar.

Citation

BibTeX citation:
@online{lettry2023,
  author = {Lettry, Layal Christine},
  title = {Progress Bars},
  date = {2023-10-12},
  url = {https://rdiscovery.netlify.app/posts/2023-10-12_progress-bars/},
  langid = {en}
}
For attribution, please cite this work as:
Lettry, Layal Christine. 2023. “Progress Bars.” October 12, 2023. https://rdiscovery.netlify.app/posts/2023-10-12_progress-bars/.