During the evaluation cycle of each block, user notifications may be
generated to inform in case of issues such as errors or warnings. These
notifications are provided in a way that display can be controlled and
adapted to specific needs. The default notify_user
plugin simply displays
notifications via shiny::showNotification()
, with some ID management in
order to be able to clear no longer relevant notifications via
shiny::removeNotification()
.
Value
A plugin container inheriting from notify_user
is returned by
notify_user()
, while the UI component (e.g. notify_user_ui()
) is
expected to return shiny UI (i.e. shiny::tagList()
; if available) and the
server component (i.e. notify_user_server()
) is expected to return a
shiny::reactiveVal()
or shiny::reactive()
which evaluates to a list
containing notifications per block and notification type (i.e. "message",
"warning" or "error").