progress_bar <- function(df) {
if (!interactive()) {
return(function() {
})
}
count <- 0
pb <- utils::txtProgressBar(max = length(df), style = 3)
utils::setTxtProgressBar(pb, 0)
function() {
count <<- count + 1
utils::setTxtProgressBar(pb, count)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.