R/16-runApp.R

Defines functions run_dashboard

Documented in run_dashboard

################################################################################
#
#'
#' Initialise built-in Shiny application
#'
#' @return NULL
#' @examples
#' #
#'
#' @export
#
################################################################################

run_dashboard <- function() {
  appDir <- system.file("liberiaDashboard", package = "liberiaData")

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

  shiny::runApp(appDir, display.mode = "normal")
}
validmeasures/liberiaData documentation built on Dec. 2, 2020, 3:32 a.m.