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")
}
nutriverse/zscorer documentation built on Dec. 28, 2020, 10:32 p.m.