.detect_msgs | R Documentation |
Function looks for non-null contents in requested columns and notifies user before removal. Specifically used for detecting messages.
.detect_msgs(x, ...)
x |
( |
... |
( |
a data frame
ard <- ard_continuous(
ADSL,
by = ARM,
variables = AGE,
statistic = ~ list(
mean = \(x) mean(x),
mean_warning = \(x) {
warning("warn1")
warning("warn2")
mean(x)
},
err_fn = \(x) stop("'tis an error")
)
)
cards:::.detect_msgs(ard, "warning", "error")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.