Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

msg_progress

Message signaling nested with progress reporting


Description

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.

Usage

msg_progress(..., envir = parent.frame())

Arguments

...

Passed to base::.makeMessage()

envir

Passed to glue::glue().

Value

Called for side effects and returns NULL invisibly.

Examples

msg_progress("Foo", "bar")

capt_fun <- function(x) {
  message("captured: ", conditionMessage(x))
}

tryCatch(msg_progress("Foo", "bar"), msg_progress = capt_fun)

ricu

Intensive Care Unit Data with R

v0.1.3
GPL-3
Authors
Nicolas Bennett [aut, cre], Drago Plecko [aut], Ida-Fong Ukor [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.