R/runApp.R

Defines functions run_zscorer

Documented in run_zscorer

################################################################################
#
#'
#' Initialise built-in Shiny application
#'
#' @return NULL
#'
#' @examples
#' if(interactive()) run_zscorer()
#'
#' @export
#
run_zscorer <- function() {
  appDir <- system.file("zscorer", package = "zscorer")

  if (appDir == "") {
    stop("Could not find Shiny directory. Try re-installing `zscorer`.",
         call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}

Try the zscorer package in your browser

Any scripts or data that you put into this service are public.

zscorer documentation built on Oct. 30, 2019, 9:43 a.m.