Keep track of messages printed by modules
Usage
error_notification(
cond,
title = "Error found!",
type = "danger",
class = "error_notif",
delay = 30000,
autohide = TRUE,
collapse = "\n",
prefix = paste("Found the following error",
"(details have been printed in the console):"),
session = shiny::getDefaultReactiveDomain()
)
error_alert(
cond,
title = "Error found!",
type = "error",
danger_mode = TRUE,
auto_close = FALSE,
prefix = paste("Found the following error",
"(details have been printed in the console):"),
buttons = "Confirm",
session = shiny::getDefaultReactiveDomain()
)
with_error_notification(expr, envir = parent.frame(), quoted = FALSE, ...)
with_error_alert(expr, envir = parent.frame(), quoted = FALSE, ...)Arguments
- cond
condition to log
- type
which type of logging should be set; default is
'console', if file log is enabled throughset_logger_path,typecould be'file'or'both'. Default log level is'info'on console and'debug'on file.- class, title, delay, autohide
passed to
show_notificationwill be passed to
shiny_alert2orshow_notification- prefix
additional messages to display in the notification or alert
- session
shiny session
- expr
expression to evaluate
- envir
environment to evaluate
expr- quoted
whether
expris quoted; default is false- ...
passed to other methods