R/hwe_app.R

Defines functions hwe_app

Documented in hwe_app

#' Shiny app of the Hardy Weinberg Equillibrium calculations
#'
#' App to easily calculate and visualize the HWE.
#'
#' @export

hwe_app <- function() {
  appDir <- system.file("shiny-examples", "hwe_calc", package = "daDoctoR")
  if (appDir == "") {
    stop("Could not find app directory. Try re-installing `daDoctoR`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
agdamsbo/daDoctoR documentation built on Aug. 30, 2022, 4:29 p.m.