runExampleApp: Run the example Titanic app

View source: R/templates.R

runExampleAppR Documentation

Run the example Titanic app

Description

Opens "Titanic Explorer", a complete example app built with EZRShiny that explores who survived the Titanic, using R's built-in datasets::Titanic data. It uses every kind of tab (a single page, a page with a sidebar, a row of sub tabs and a drop-down menu of tabs), hides tabs until they are useful, switches buttons on and off, and follows the standard folder layout:

Usage

runExampleApp(...)

Arguments

...

Passed to shiny::runApp(), for example launch.browser = TRUE.

Details

  • app.R: packages, UI and server.

  • ⁠Functions/⁠: helper functions, loaded with sourceFunctions().

  • ⁠Necessary_Files/⁠: the Titanic data as a CSV, one row per person.

  • ⁠www/⁠: the logo shown in the navigation bar.

Its code is a good starting point for your own app. Find it with system.file("examples", "titanicExplorer", package = "EZRShiny").

Needs the 'ggplot2' package.

Value

Does not return while the app is running.

Examples

# Where the example app's files are:
list.files(system.file("examples", "titanicExplorer", package = "EZRShiny"),
           recursive = TRUE)

if (interactive()) {
  runExampleApp()
}

EZRShiny documentation built on Oct. 10, 2026, 5:08 p.m.