R/launchApp.R

Defines functions launchApp

#' launches the shinyAppDemo app
#'
#' @export launchApp
#'
#' @return shiny application object
#'
#' @example \dontrun {launchApp()}
#'
#' @import shiny
#'


# wrapper for shiny::shinyApp()
launchApp <- function() {
  library(shiny)
  appDir <- system.file("app", package = "covidex")
  if (appDir == "") {
    stop("Could not find myapp. Try re-installing `mypackage`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
marcocacciabue/Covidex documentation built on March 24, 2021, 11:51 a.m.