R/run_shiny.R

Defines functions run_shiny

Documented in run_shiny

#' Run breathtestshiny app
#' @param port Port for runApp, default 3838
#' @export
#' @importFrom shiny runApp
run_shiny = function(port = 3838) {
  appDir = system.file("shiny", package = "breathtestshiny")
  if (appDir == "") {
    stop("Could not Shiny app in breathtestshiny", call. = FALSE)
  }
  runApp(appDir, port = port, host = "0.0.0.0")
}
dmenne/breathtestshiny documentation built on July 21, 2022, 3:41 a.m.