runExample: Run Shiny Application

Description Usage Arguments Details Author(s) References Examples

View source: R/runExample.r

Description

Runs a shiny application which draws from the given distributions, then illustrates the fidelity of the density, CDF, and quantile functions.

Usage

1
2
runExample(port=NULL,launch.browser=TRUE,
 host=getOption('shiny.host','127.0.0.1'),display.mode='auto')

Arguments

port

The TCP port that the application should listen on. If the port is not specified, and the shiny.port option is set (with options(shiny.port = XX)), then that port will be used. Otherwise, use a random port.

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. This value of this parameter can also be a function to call with the application's URL.

host

The IPv4 address that the application should listen on. Defaults to the shiny.host option, if set, or "127.0.0.1" if not. See Details.

display.mode

The mode in which to display the application. If set to the value "showcase", shows application code and metadata from a DESCRIPTION file in the application directory alongside the application. If set to "normal", displays the application normally. Defaults to "auto", which displays the application in the mode given in its DESCRIPTION file, if any.

Details

Launches shiny applications, and optionally, your system's web browser. Draws are taken from the random variable, and d-d, q-q, and p-p plots are available.

Author(s)

Steven E. Pav [email protected]

References

Attali, D. "Supplementing your R package with a shiny app." http://deanattali.com/2015/04/21/r-package-shiny-app/

Examples

1
2
3
4
## Not run: 
runExample(launch.browser=TRUE)

## End(Not run)

shabbychef/sadists documentation built on May 29, 2019, 8:06 p.m.