| runExampleApp | R Documentation |
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:
runExampleApp(...)
... |
Passed to |
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.
Does not return while the app is running.
# Where the example app's files are:
list.files(system.file("examples", "titanicExplorer", package = "EZRShiny"),
recursive = TRUE)
if (interactive()) {
runExampleApp()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.