View source: R/report_progress.R
report_progress | R Documentation |
This function prints out the percent progress in a process given the current iteration the total number of iterations and the percentage at which a progress report is wanted. It only works on loops in which the index is explicitly incremented in the code.
report_progress(
current,
total,
percent_text = 10,
percent_dot = 2,
verbose = TRUE
)
current |
The current index being processed |
total |
The total number of indices that will be processed |
percent_text |
The percent progress at which the percent should be printed to the screen. |
percent_dot |
The percent progress at which a dot should be printed to the screen |
verbose |
A logical value indicating whether to report progress to the screen. Defaults to TRUE. |
None. Prints output to the screen.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.