Skip to content

Commit 6b2099d

Browse files
committed
get rid of NOTE in R CMD check
1 parent 1663d8e commit 6b2099d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/lib.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,15 @@ pgrs <- function(resp) {
261261
}
262262

263263
if (!isTRUE(the$str_prgs$pb == the$str_prgs$f)) {
264+
# format outside glue statement to get rid of NOTE in R CMD check
265+
total_pretty <- prettyunits::pretty_bytes(str_prgs$total)
264266
cli::cli_progress_bar(
265267
name = the$str_prgs$f,
266268
type = "download",
267269
format = paste0(
268270
"{cli::pb_spin} downloading {str_prgs$f} ",
269-
"({str_prgs$done_pct} of {prettyunits::pretty_bytes(str_prgs$total)}) ",
270-
"at {prettyunits::pretty_bytes(str_prgs$speed)}/s"
271+
"({str_prgs$done_pct} of {total_pretty)}) ",
272+
"at {prettyunits::pretty_bytes(str_prgs$speed}/s"
271273
),
272274
format_done = paste0(
273275
"{cli::col_green(cli::symbol$tick)} downloaded {str_prgs$f}"

0 commit comments

Comments
 (0)