runExample: Run Shiny Application

View source: R/runExample.r

runExampleR Documentation

Run Shiny Application

Description

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

Usage

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 shabbychef@gmail.com

References

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

Examples

## Not run: 
runExample(launch.browser=TRUE)

## End(Not run)

sadists documentation built on Aug. 22, 2023, 1:06 a.m.