R/launchApp.R

Defines functions launchApp

# Package bizgamer - launchApp.R
# 2019-05-15

#' launchApp
#'
#' @return a shinyApp object
#' @export
#'
#' @import shiny
launchApp <- function() {
  appDir <- system.file("app", package = "bizgamer")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `bizgamer`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
Camisoft/bizgamer documentation built on May 17, 2019, 12:10 a.m.