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"))
}
  
giocomai/edjnetquotefinder documentation built on Feb. 11, 2022, 12:51 p.m.