update_timer | R Documentation |
A more advanced update timer for elapsed time in a for loop
update_timer(start_time, cur_time = Sys.time(), cur_iter, total_iter)
start_time |
A 'Sys.time()' object documenting the time the loop started |
cur_time |
A 'Sys.time()' object documenting the current time. default is current system time |
cur_iter |
The current iteration of the for loop |
total_iter |
The total number of iterations of the loop |
update_timer()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.