R/pathway_app.R

Defines functions pathway_app

Documented in pathway_app

#' Shiny app for pathway model
#' 
#' Interactive application to estimate the number of potential founder populations (\eqn{NPFP}) 
#' of a pest in different regions or countries using the NUTS 
#' coding system. See 
#' [Nomenclature of territorial units for statistics](https://ec.europa.eu/eurostat/web/nuts).
#' 
#' @return No return value, called for side effects
#' 
#' @seealso [pathway_model()]
#'
#' @export
#'
#' @examples
#' if (interactive()) {
#' pathway_app()
#' }
#' @importFrom shiny runApp shinyApp
pathway_app <- function(){
  app <- shinyApp(
    ui = pathwayapp_ui,
    server = pathwayapp_server
  )
  runApp(app,
         display.mode = "normal",
         launch.browser = TRUE)
}

Try the qPRAentry package in your browser

Any scripts or data that you put into this service are public.

qPRAentry documentation built on April 12, 2025, 1:12 a.m.