R/lunch_app.R

Defines functions launch_app

Documented in launch_app

#' Launch the Shiny App
#'
#' @description Load the shiny app covidtrack
#'
#' @import shiny
#'
#' @examples
#' \dontrun{
#' launch_app()
#' }
#'
#' @export
launch_app <- function() {
  appDir <- system.file("app",package = "covidtrack")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `covidtrack`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
etc5523-2020/r-package-assessment-yezihe-0063 documentation built on Jan. 1, 2021, 1:13 a.m.