\name{runExample} \alias{runExample} \title{Run Shiny Example Applications} \usage{ runExample(example = NA, port = NULL, launch.browser = "auto", host = getOption("shiny.host", "127.0.0.1")) } \arguments{ \item{example}{The name of the example to run, or \code{NA} (the default) to list the available examples.} \item{port}{The TCP port that the application should listen on. Defaults to choosing a random port.} \item{launch.browser}{If true, the system's default web browser will be launched automatically after the app is started. Defaults to \code{"auto"}, which uses the \code{shiny.launch.browser} preference if present, and invokes the browser specified by \code{shiny.browser} if specified.} \item{host}{The IPv4 address that the application should listen on. Defaults to the \code{shiny.host} option, if set, or \code{"127.0.0.1"} if not.} } \description{ Launch Shiny example applications, and optionally, your system's web browser. } \examples{ \dontrun{ # 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") } }