From a291bd1b92ccd45e9610bd46f24cd3859ea51cea Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Mon, 11 Aug 2025 15:03:55 +0200 Subject: [PATCH 1/2] Fix typo in documentation. --- R/progress-client.R | 2 +- man/cli_progress_bar.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/progress-client.R b/R/progress-client.R index 660f3943..949044a9 100644 --- a/R/progress-client.R +++ b/R/progress-client.R @@ -229,7 +229,7 @@ #' format_done = paste0( #' "{col_green(symbol$tick)} Downloaded {pb_total} files ", #' "in {pb_elapsed}." -#' ),, +#' ), #' total = length(urls) #' ) #' for (url in urls) { diff --git a/man/cli_progress_bar.Rd b/man/cli_progress_bar.Rd index bb9bfeb8..fb9f4253 100644 --- a/man/cli_progress_bar.Rd +++ b/man/cli_progress_bar.Rd @@ -346,7 +346,7 @@ variables in the calling function: format_done = paste0( "\{col_green(symbol$tick)\} Downloaded \{pb_total\} files ", "in \{pb_elapsed\}." - ),, + ), total = length(urls) ) for (url in urls) \{ From 313938967246ea9c10020c5e9a599ce5350254c2 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Mon, 11 Aug 2025 16:43:19 +0200 Subject: [PATCH 2/2] Add clear = FALSE to display the format_done message. --- R/progress-client.R | 1 + man/cli_progress_bar.Rd | 1 + 2 files changed, 2 insertions(+) diff --git a/R/progress-client.R b/R/progress-client.R index 949044a9..a9f0759f 100644 --- a/R/progress-client.R +++ b/R/progress-client.R @@ -230,6 +230,7 @@ #' "{col_green(symbol$tick)} Downloaded {pb_total} files ", #' "in {pb_elapsed}." #' ), +#' clear = FALSE, #' total = length(urls) #' ) #' for (url in urls) { diff --git a/man/cli_progress_bar.Rd b/man/cli_progress_bar.Rd index fb9f4253..ca8abbbd 100644 --- a/man/cli_progress_bar.Rd +++ b/man/cli_progress_bar.Rd @@ -347,6 +347,7 @@ variables in the calling function: "\{col_green(symbol$tick)\} Downloaded \{pb_total\} files ", "in \{pb_elapsed\}." ), + clear = FALSE, total = length(urls) ) for (url in urls) \{