Description Usage Arguments Examples
progressing tag to use progress bar with functionals
1 2 3 4 5 |
.format |
The format of the progress bar. see |
.width |
Width of the progress bar. |
.complete |
Completion character. |
.incomplete |
Incomplete character. |
.current |
Current character. |
.callback |
Callback function to call when the progress bar finishes. The progress bar object itself is passed to it as the single parameter. |
.clear |
Whether to clear the progress bar on completion. |
.show_after |
Amount of time in seconds, after which the progress bar is shown on the screen. For very short processes, it is probably not worth showing it at all. |
.force |
Whether to force showing the progress bar, even if the given (or default) stream does not seem to support it. |
.message |
A message to display on top of the bar |
.tokens |
A list of unevaluated expressions, using |
.FUN_arg |
name or position of function arg, by default looks for the
first argument that is either |
1 2 3 4 5 6 7 | ## Not run:
library(purrr)
progressing$map(1:3, ~{Sys.sleep(1);.x*2})
## End(Not run)
x <- progressing$lapply(1:10000, force)
progressing(.format = "[:bar] :eta")$lapply(1:5, function(x) {Sys.sleep(1);x*2})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.