Skip to content

Quiet progress bars - #840

Open
jacciz wants to merge 3 commits into
r-lib:mainfrom
jacciz:quiet-progress-bars
Open

jacciz wants to merge 3 commits into
r-lib:mainfrom
jacciz:quiet-progress-bars

Conversation

@jacciz

@jacciz jacciz commented Sep 17, 2026

Copy link
Copy Markdown

Fix issue #645 by adding an argument quiet to suppress progress bar when quiet = FALSE.

Comment thread R/progress-client.R
Comment thread R/progress-client.R
Comment thread R/progress-client.R Outdated
Comment thread R/progress-client.R Outdated
@thomasp85

Copy link
Copy Markdown
Member

The CI is failing because you need to regenerate the documentation (devtools::document())

@jacciz

jacciz commented Sep 17, 2026

Copy link
Copy Markdown
Author

The CI is failing because you need to regenerate the documentation (devtools::document())
It's a roxygen issue - I showed it to @hadley and I believe he may fix it

@hadley

hadley commented Sep 21, 2026

Copy link
Copy Markdown
Member

Fix in #839 pending @gaborcsardi approval.

Comment thread R/progress-client.R
#' bar of the calling function. See more at 'The current progress bar'
#' below.
#' @param quiet if `TRUE` suppresses output from this function. Defaults to the `cli.disable_progress` option, or
#' `TRUE` if unset.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs still say 'TRUE' or am I missing something here?

Comment thread R/progress-client.R
clienv$progress[[id]] <- bar
if (current) {
if (!is.null(clienv$progress_ids[[envkey]])) {
if (!is.null(clienv$progress_ids[[envkey]]) && !quiet) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem correct to me. If we are creating a new progress bar, then that should be the current progress bar, whether it is quiet or not.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants