R/lauch_app.R

Defines functions launch_shiny_app

Documented in launch_shiny_app

#' @title Application Launcher
#'
#' @param app name of application.
#' @param use_browser logical.
#'
#' @importFrom shiny runApp
#'
#' @examples
#' \dontrun{
#'
#'
#' launch_shiny_app()
#' }
#'
#' @export
launch_shiny_app <- function(app = "shiny-snExplorer",
                             use_browser = TRUE) {
  dir <- system.file(app,
    package = "snExplorer"
  )

  runApp(
    appDir = dir,
    launch.browser = use_browser
  )
}
cjcallag/snExplorer documentation built on Dec. 31, 2022, 12:32 p.m.