batapply | R Documentation |
Iterator function with echolocatoR-themed progress bar.
batapply( X, FUN = function(l) Sys.sleep(5/100), apply_func = lapply, total = length(X), name = NULL, .envir = parent.frame(), cli.progress_show_after = 0, clear = FALSE, color1 = cli::col_br_cyan, color2 = cli::col_br_magenta, ... )
X |
a vector (atomic or list) or an |
FUN |
the function to be applied to each element of |
apply_func |
Iterator function to use (default: lapply). |
total |
Passed to |
name |
Name of the progress bar, a label, passed to
|
.envir |
Passed to |
cli.progress_show_after |
How long to wait before showing the progress bar. |
clear |
Whether to remove the progress bar from the screen after
it has terminated. Defaults to the |
color1 |
First color to use in the palette. |
color2 |
Second color to use in the palette. |
... |
Additional arguments passed to |
A (named) list.
out <- batapply(X = seq_len(30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.