daDoctoR/R/hwe_app.R

15 lines
394 B
R
Raw Normal View History

2019-11-08 10:59:45 +01:00
#' Shiny app of the Hardy Weinberg Equillibrium calculations
#'
#' App to easily calculate and visualize the HWE.
#'
#' @export
2019-11-08 12:22:49 +01:00
2019-11-08 10:59:45 +01:00
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")
}