txtProgressBar(min = 0, max = 1, initial = 0, char = "=",
width = NA, title, label, style = 1, file = "")getTxtProgressBar(pb)
setTxtProgressBar(pb, value, title = NULL, label = NULL)
# S3 method for txtProgressBar
close(con, …)
min < max
.char
. If NA
, the default, the number of characters
is that which fits into getOption("width")
.""
which indicates
the console: stderr()
might be useful here."txtProgressBar"
.txtProgressBar
an object of class "txtProgressBar"
. For getTxtProgressBar
and setTxtProgressBar
, a
length-one numeric vector giving the previous value (invisibly for
setTxtProgressBar
).txtProgressBar
will display a progress bar on the R console
(or a connection) via a text representation. setTxtProgessBar
will update the value. Missing
(NA
) and out-of-range values of value
will be
(silently) ignored. (Such values of initial
cause the progress
bar not to be displayed until a valid value is set.) The progress bar should be close
d when finished with: this
outputs the final newline character. style = 1
and style = 2
just shows a line of
char
. They differ in that style = 2
redraws the line
each time, which is useful if other code might be writing to the R
console. style = 3
marks the end of the range by |
and
gives a percentage to the right of the bar.winProgressBar
,
tkProgressBar
. Windows versions of R also have winProgressBar
.