R/launch_app.R

Defines functions launch_app

Documented in launch_app

#' Function to launch the shiny application
#' 
#' @title launch_app
#' @author chenjie
#' 
#' @return shinyapp
#' 
#' @examples
#' \dontrun{
#' launch_app()
#' }
#'
#' @export
launch_app <- function() {
  appDir <- system.file("app",package = "covid")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `covid`.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}
etc5523-2020/r-package-assessment-cgon0007 documentation built on Jan. 1, 2021, 1:12 a.m.