R/run_filter_nhp_app.R

Defines functions run_filter_nhp_app

Documented in run_filter_nhp_app

#' Run filter_nhp() shiny app
#'
#' Runs a user-friendly shiny app that calls on `filter_nhp()`.
#'
#' @export
#'
#' @import shiny
run_filter_nhp_app <- function() {
  appDir <- system.file("app", package = "filterNHP")

  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `filterNHP`.",
         call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}

Try the filterNHP package in your browser

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

filterNHP documentation built on Nov. 18, 2021, 5:06 p.m.