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
)
None. Prints output to the screen.
The current index being processed
The total number of indices that will be processed
The percent progress at which the percent should be printed to the screen.
The percent progress at which a dot should be printed to the screen
A logical value indicating whether to report progress to the screen. Defaults to TRUE.