R/runApp.R

Defines functions runApp

Documented in runApp

#' Run Google Trends app
#'
#' @return Can choose to export data and plots through Shiny
#' @export
#'
#' @examples
#' \dontrun{
#' runApp()
#' }
runApp <- function(){
  appDir <- system.file("shiny-app", package = "GSPtrends")
  if (appDir == "") {
    stop("Could not find directory. Try reinstalling `GSPtrends`", call. = FALSE)
  }
  shiny::runApp(appDir, display.mode = "normal")
}
taylorgrant/GSPtrends documentation built on Sept. 14, 2024, 5:43 p.m.