Description Usage Arguments Details Value See Also Examples
View source: R/sendeR_txtProgressBar.R
This function is a wrapper for txtProgressBar
.
In addition to standard txtProgressBar
functionality this function
will send message using send_message
method of the
client
argument. Parameters other than client
and ...
have the same use-case as in the txtProgressBar
(description of these
parameters was taken from txtProgressBar
documentation).
1 2 3 4 5 6 7 8 9 10 11 12 13 |
client |
the client which will send the message. |
min, max |
(finite) numeric values for the extremes of the progress bar.
Must have |
initial |
initial or new value for the progress bar. See ‘Details’
in |
char |
the character (or character string) to form the progress bar. |
width |
the width of the progress bar, as a multiple of the width of
char. If NA, the default, the number of characters is that which fits into
|
title, label |
ignored, for compatibility with other progress bars. |
style |
the ‘style’ of the bar – see ‘Details’ in
|
file |
an open connection object or "" which indicates the console: stderr() might be useful here. |
... |
additional parameters to be passed to the |
Note: If the client
has no fields set then the
message
and destination
have to be passed through the ellipsis
(...
).
A progress bar object on which every method normally used on
txtProgressBar
can be used.
getTxtProgressBar
, setTxtProgressBar
1 2 3 4 5 6 7 8 9 | client <- client_slack("my_webhook")
pb <- sendeR_txtProgressBar(client, message = "Progress bar has finished!")
## Not run:
for (i in 1:10) {
Sys.sleep(0.5)
setTxtProgressBar(pb, i / 10)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.