Description Usage Arguments Value Examples
View source: R/progress_updater.R
Include this function in a loop or other calculation that iterates over elements in which both the current and total number of elements is known.
1  | progress_updater(i, n, grp = NULL, rnd = 0, indent = 0)
 | 
i | 
 numeric vector of length == 1. The current iteration value  | 
n | 
 numeric vector of length == 1. The number of iterations to calculate  | 
grp | 
 character or numeric vector of length == 1. Optional additional identifier to be placed
in parentheses following the printed percent. Defaults to   | 
rnd | 
 numeric vector of length == 1. The number of decimal values in the printed percent.
Defaults to   | 
indent | 
 numeric vector of length == 1. The number of space characters to indent the printed percent.  | 
A printed percent to the console (i/n * 100)
1  |  junk = sapply(1:15, function(i) {progress_updater(i, 15, rnd = 1); Sys.sleep(0.2)})
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.