powered by
Simple wrapper for progress_bar for standard and quickly ready progress bars; including messages, bar progression, percentage and time elapsed, and ETA.
progress_bar
pb_len(.x, width = 76L, show_after = 2L, clear = FALSE)tick(pb, what = "")
tick(pb, what = "")
a progress_bar object
(int) total number of step to count
(int, default = 76) total console width used by the bar
(num, default = 2) minimum number of seconds needed for the process to display the progress bar
(lgl, default = FALSE) if TRUE, at the end of the process the progress bar will be cleared
an object of class progress_bar
(chr, default = "") short prompt to see at the beginning of the progressbar
tick(): wrapper function to update the progress bar
tick()
# \donttest{ pb <- pb_len(100) for (i in 1:100) { Sys.sleep(0.1) tick(pb, paste("i = ", i)) } # }
Run the code above in your browser using DataLab