A progress bar version of lapply without boilerplate overhead
jstapply(X, FUN, flag, ...)
| X | a vector (atomic or list) or an |
|---|---|
| FUN | the function to be applied to each element of |
| flag | placeholder not currently implemented to specify pre-bar flag |
| ... | optional arguments to |
if (FALSE) { lapply(1:3, function(x) Sys.sleep(x)) # compared with: jstapply(1:3, function(x) Sys.sleep(x)) }