R/shiny_precisely.R

Defines functions launch_precisely_app

Documented in launch_precisely_app

#' Launch precisely Shiny app
#'
#' `launch_precisely_app()` launches a Shiny app to calculate and plot
#' precision, sample size, and upper limit calculations.
#'
#' @export
launch_precisely_app <- function() {
  app_dir <- system.file("shiny_app", "precisely", package = "precisely")
  if (app_dir == "") {
    stop("Shiny app not found. Try re-installing `precisely`.", call. = FALSE)
  }

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

Try the precisely package in your browser

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

precisely documentation built on Oct. 10, 2021, 9:07 a.m.