R/pf_run_Shiny.R

Defines functions pf_run_Shiny

Documented in pf_run_Shiny

#' Run PetFindr Shiny app
#'
#' Launch the PetFindr Shiny application that displays animal location information.
#' 
#' @export
#'
#' @examples
#' \dontrun{
#' pf_run_Shiny()
#' }
pf_run_Shiny <- function() {
  appDir <- system.file("shiny-example", "pf_shiny", package = "PetFindr")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `PetFindr`.",
         call. = FALSE
    )
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}
earl88/PetFindr documentation built on Jan. 18, 2020, 9:10 a.m.