progressBarHook(object = NULL, value = 0, min = 0, max = 100, close = FALSE)
TRUE
, the progress bar is closed.object
in subsequent calls.)
pb <- progressBarHook(object=NULL, value=0, min=0, max=LEN)
to create a new progress bar.
pb <- progressBarHook(object=pb, value= VAL)
to set the progress bar to a new value (between the set min
and max
)
progressBarHook(object=pb, close=TRUE)
to close the progress bar. (The actual calls are performed with do.call
,
e.g.
progressbar <- "progressBarHook"
pb <- do.call(progressbar, list(object=pb, value= nProg))
. See the source code for details.)To substitute the standard progress bar for an alternative implementation (e.g. for
use in a GUI), the developer can write his own function which behaves in the same way
as progressBarHook
, i.e. takes the same parameters and can be called in the
same way.