R/launch.R

Defines functions launch_app

Documented in launch_app

#' launch_app
#' Run the graphical interface to the game in a web browser
#' @export
launch_app <- function() {
  appDir <- system.file("shiny", "app.R", package = "shksprwrdl")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `shksprwordl`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal", launch.browser = TRUE)
}
rubenhm/shksprwrdl documentation built on Jan. 26, 2022, 6:08 a.m.