Description Usage Arguments Details Value Author(s) Examples
Set a counter which represents percent finished in a loop
1 | set_counter(n, fmt = "%s")
|
n |
number of iteration in a loop. |
fmt |
format of the message, pass to |
The counter function should be executed in every iteration in the loop.
A counter function.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 | counter = set_counter(1000)
for(i in 1:1000) {counter()}
counter = set_counter(1000, fmt = "processing %s")
for(i in 1:1000) {counter()}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.