
Last chance! 50% off unlimited learning
Sale ends in
rxProgress
sets up the progress bar
rxProgress(num, core = 0L)rxTick()
rxProgressStop(clear = TRUE)
rxProgressAbort(error = "Aborted calculation")
Tot number of operations to track
Number of cores to show. If below 1, don't show number of cores
Boolean telling if you should clear the progress bar after completion (as if it wasn't displayed). By default this is TRUE
With rxProgressAbort this is the error that is displayed
All return NULL invisibly.
rxTick
is a progress bar tick
rxProgressStop
stop progress bar
rxProgressAbort
shows an abort if rxProgressStop
wasn't called.
# NOT RUN {
f <- function() {
on.exit({
rxProgressAbort()
})
rxProgress(100)
for (i in 1:100) {
rxTick()
Sys.sleep(1 / 100)
}
rxProgressStop()
}
# }
# NOT RUN {
f()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab