R/runApp.R

Defines functions runApp

#' @export
runApp <- function() {
  appDir <- system.file('app', package = "tubeshiny")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `mypackage`.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal", launch.browser = TRUE)
}
aljrico/tubeshiny documentation built on Nov. 2, 2019, 1:41 p.m.