When parameters are set by pboptions, their former values are
returned in an invisible named list. Such a list can be passed as an
argument to pboptions to restore the parameter values.
Tags are the following:
- type
Type of the progress bar: timer ("timer"),
text ("txt"), Windows ("win"), TclTk ("tk"),
none ("none"), or Shiny ("shiny").
Default value is "timer" progress bar with estimated remaining time
when in interactive mode, and "none" otherwise.
See pbtypes() for available progress bar types
depending on operating system.
- char
The character (or character string) to form the progress bar.
Default value is "+".
- txt.width
The width of the text based progress bar, as a multiple
of the width of char.
If NA, the number of characters is that which fits into
getOption("width").
Default value is 50.
- gui.width
The width of the GUI based progress bar in pixels:
the dialogue box will be 40 pixels wider (plus frame).
Default value is 300.
- style
The style of the bar, see
txtProgressBar and timerProgressBar.
Default value is 3.
- initial
Initial value for the progress bar. Default value is
0.
- title
Character string giving the window title
on the GUI dialogue box. Default value is "R progress bar".
- label
Character string giving the window label
on the GUI dialogue box. Default value is "".
- nout
Integer, the maximum number of times the progress bar is updated.
The default value is 100. Smaller value minimizes the
running time overhead related to updating the progress bar.
This can be especially important for forking type parallel runs.
- min_time
Minimum time in seconds.
timerProgressBar output is printed only if
estimated completion time is higher than this value.
The default value is 0.
- use_lb
Switch for using load balancing when running in
parallel clusters. The default value is FALSE.
For startpb a progress bar object.
For getpb and setpb, a length-one numeric vector giving
the previous value (invisibly for setpb).
The return value is NULL if the progress bar is turned off by
getOption("pboptions")$type ("none" or NULL value).
dopb returns a logical value if progress bar is to be shown
based on the option getOption("pboptions")$type.
It is FALSE if the type of progress bar is "none" or
NULL.
doshiny returns a logical value, TRUE when the shiny
package namespace is available (i.e. the suggested package is installed),
the type option is set to "shiny", and a shiny application
is running.
For closepb closes the connection for the progress bar.
pbtypes prints the available progress bar types
depending on the operating system (i.e. "win" available
on Windows only).