R/runDemo.R

Defines functions run_tracker

Documented in run_tracker

#' @title Covid-19 tracker
#'
#' @author L. Hsieh, A. Monney, R. Tombola
#' @export
run_tracker <- function() {
  appDir <- system.file("shiny-examples", "tracker", package = "projectG1")
  if (appDir == "") {
    stop(
      "Could not find example directory. Try re-installing `projectG1`.",
      call. = FALSE
    )
  }
  shiny::runApp(appDir, display.mode = "normal")

}
ptds2021/projectG1 documentation built on Dec. 22, 2021, 10:50 a.m.