R/shiny_app.R

Defines functions run_survey_sim_app

Documented in run_survey_sim_app

#' Run Survey Simulation 'Shiny' App
#'
#' Launches the 'Shiny' app for finite population total estimation under SRSWOR.
#'
#' @return Launches a 'Shiny' application.
#' @examples
#' if (interactive()) {
#'   run_survey_sim_app()
#' }
#' @export
run_survey_sim_app <- function() {
  app_dir <- system.file("shiny", package = "surveySimR")
  if (app_dir == "") {
    stop("Could not find 'Shiny' app directory. Try re-installing `surveySimR`.", call. = FALSE)
  }
  shiny::runApp(app_dir, display.mode = "normal")
}

Try the surveySimR package in your browser

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

surveySimR documentation built on June 8, 2025, 10:37 a.m.