R/utils-progress.R

Defines functions pipe_tick init_progress

init_progress <- function(name, total) {
  progress::progress_bar$new(
    format = paste(name, "[:bar]", ":percent", sep = "   "),
    total = total,
    show_after = 0
  )
}

pipe_tick <- function(piped, progress_bar) {
  progress_bar$tick()
  piped
}
UCLATALL/CourseKataData documentation built on Dec. 4, 2023, 2:25 a.m.