stratifyRApp: Launch the stratifyR 2.0 Interactive Shiny Application

View source: R/app.R

stratifyRAppR Documentation

Launch the stratifyR 2.0 Interactive Shiny Application

Description

Opens the stratifyR web interface in the default browser. The application gives no-code access to the package: users upload their own data (CSV or Excel) or select a built-in dataset, compute optimum stratum boundaries and sample sizes with the "dp", "cobyla" or "global" solvers, compare design efficiencies, explore boundaries interactively, and download the results.

Usage

stratifyRApp(...)

Arguments

...

Additional arguments passed to runApp, for example port or launch.browser.

Details

The application needs shiny, bslib and DT to start; if any of these is missing, stratifyRApp() stops with a short installation hint rather than a cryptic error. The optional packages plotly, readxl, ggplot2 and stratification add features (interactive 2D/3D and slider plots, Excel upload, and the Lavallee-Hidiroglou comparison). The app opens without them, and on launch it reports any that are not installed so nothing fails silently. To install everything the app can use:

install.packages(c("shiny", "bslib", "DT",
                   "plotly", "readxl", "ggplot2", "stratification"))

Value

Called for its side effect (launches a Shiny app); returns NULL invisibly.

Examples

## Not run: 
stratifyRApp()

## End(Not run)

stratifyR documentation built on Sept. 10, 2026, 5:07 p.m.