Description Usage Arguments Value Examples
In order to not interrupt progress reporting by a progress::progress_bar,
messages are wrapped with class msg_progress
which causes them to be
captured printed after progress bar completion. This function is intended to
be used when signaling messages in callback functions.
1 | msg_progress(..., envir = parent.frame())
|
... |
Passed to |
envir |
Passed to |
Called for side effects and returns NULL
invisibly.
1 2 3 4 5 6 7 | msg_progress("Foo", "bar")
capt_fun <- function(x) {
message("captured: ", conditionMessage(x))
}
tryCatch(msg_progress("Foo", "bar"), msg_progress = capt_fun)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.