Determine if progress bars should be shownSource:
Progress bars are shown unless one of the following is
The bar is explicitly disabled by setting
The code is run in a non-interactive session (
The code is run in an RStudio notebook chunk.
The code is run by knitr / rmarkdown.
The code is run by testthat (the