R/shiny.R

Defines functions run_wsup

Documented in run_wsup

################################################################################
#
#'
#' Initialise built-in Shiny application
#'
#' @return NULL
#'
#' @examples
#' if(interactive()) run_wsup()
#'
#' @export
#
################################################################################

run_wsup <- function() {
  appDir <- system.file("wsup", package = "wsup")
  
  if (appDir == "") {
    stop("Could not find Shiny directory. Try re-installing `wsup`.",
         call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}
validmeasures/wsup documentation built on Dec. 16, 2019, 4:50 a.m.