R: Determine whether progress bars should be shown

show_progress {readr} | R Documentation

## Determine whether progress bars should be shown

### Description

By default, readr shows progress bars. However, progress reporting is suppressed if any of the following conditions hold:

- The bar is explicitly disabled by setting `options(readr.show_progress = FALSE)`.

- The code is run in a non-interactive session, as determined by `rlang::is_interactive()`.

- The code is run in an RStudio notebook chunk, as determined by `getOption("rstudio.notebook.executing")`.

### Usage

    show_progress()

[Package readr version 2.1.2 Index]