R/run_app.R

Defines functions qf_dashboard

Documented in qf_dashboard

#' Run the Shiny Application
#'
#' @export
#' @importFrom shiny runApp
qf_dashboard <- function(path) {
  # https://github.com/rstudio/shiny/issues/440
  .GlobalEnv$.quotefinder.path <- path
  on.exit(rm(.quotefinder.path, envir=.GlobalEnv))

  shiny::runApp(appDir = system.file("app", package = "quotefinder"))
}
  
EDJNet/quotefinder documentation built on Feb. 12, 2022, 3:46 a.m.