runShinyApp: Run uvastatlab Shiny apps

View source: R/runShinyApp.R

runShinyAppR Documentation

Run uvastatlab Shiny apps

Description

runShinyApp runs the specified Shiny app.

Usage

runShinyApp(app)

Arguments

app

The name of the Shiny app to run as a character string. For example, app = 'ci'. Submitting the function while leaving this argument blank returns a list of available Shiny apps, albeit as an error message.

Details

This function is basically a copy of the function in Dean Attali's blog post, Supplementing your R package with a Shiny app: https://deanattali.com/2015/04/21/r-package-shiny-app/.

Value

Opens the requested Shiny app in RStudio or a web browser, depending on your setup.

Available Shiny apps

ci

illustrates confidence intervals

correlation

visualizes correlation via scatterplot

interactions

visualizes the effect of continuous interactions

lme

simulates and fits linear mixed-effects models and demonstrates random and fixed effects

nhst

visualizes power, sample size, and Type I and II errors in the context of a one-sample proportion test

passa

runs power and sample size analyses for one- and two-sample proportion tests, t-tests, and one-way ANOVAs

Examples

## Not run: 
runShinyApp()  # see all available shiny apps
runShinyApp('ci')
runShinyApp('lme')

## End(Not run)


uvastatlab/uvastatlab documentation built on Dec. 24, 2024, 10:37 p.m.