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
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.