shiny (version 0.7.0)

runExample: Run Shiny Example Applications

Description

Launch Shiny example applications, and optionally, your system's web browser.

Usage

runExample(example = NA, port = 8100L,
    launch.browser = getOption("shiny.launch.browser", interactive()))

Arguments

example
The name of the example to run, or NA (the default) to list the available examples.
port
The TCP port that the application should listen on. Defaults to port 8100.
launch.browser
If true, the system's default web browser will be launched automatically after the app is started. Defaults to true in interactive sessions only.

Examples

Run this code
# List all available examples
runExample()

# Run one of the examples
runExample("01_hello")

# Print the directory containing the code for all examples
system.file("examples", package="shiny")

Run the code above in your browser using DataLab