R/launch_app.R

Defines functions launch_app

Documented in launch_app

#' Launch App Function
#'
#' @description This function launches the covid shiny app for the user
#'
#' @return Covid Shiny App
#'
#' @examples
#' \dontrun{
#' launch_app()
#' }
#'
#'
#' @export
launch_app <- function() {
  appDir <- system.file("app", "myapp", package = "CovidShiny")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `CovidShiny`.", call. = FALSE)
  }

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