checkpoint: Shiny feedback messages

View source: R/shiny-checkpoint.R

checkpointR Documentation

Shiny feedback messages

Description

Wrapper around shiny::req() and shiny::showNotification(). Prevents application from crashing and displays guiding message about what the user is supposed to do in order to continue without this message to appear.

Usage

checkpoint(
  evaluate = TRUE,
  case_false = NULL,
  error_notifications = feedback_list,
  warning_notifications = list(),
  duration = 4,
  stop_process = TRUE,
  stop_app = FALSE
)

Arguments

evaluate

A vector of logical tests to be evaluated.

case_false

A character string indicating the message to be displayed if one element of evaluate turns out to be FALSE. Needs to be in base::names(error/warning_notifiations).

error_notifications

A named list of character strings.

warning_notifications

A named list of character strings.

duration

The duration the message is displayed.

stop_process, stop_app

Logical. What is supposed to happen if one element of evaluate turns out to be FALSE.

Value

A shiny notification.


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.