powered by
This apply function has a progress bar and enables computations in parallel. By default it is not verbose. As an interactive version with proper 'verbose' output by default please use vmap.
verboseApply(x, f, ..., .mc = 1, .mapper = mclapply, .bar = "none")
(vector)
(function)
arguments passed to .mapper and hence f
.mapper
f
(integer) the number of processes to start
(function) the actual apply function used. Should have an argument mc.cores.
mc.cores
(character) one in 'none', '.' or 'bar'
# NOT RUN { verboseApply( 1:4, function(...) Sys.sleep(1), .bar = "bar", .mc = 2 ) # }
Run the code above in your browser using DataLab