runExample: Run shiny.CSVImport Example Applications

runExampleR Documentation

Run shiny.CSVImport Example Applications

Description

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

Usage

runExample(
  example = NA,
  port = getOption("shiny.port"),
  launch.browser = getOption("shiny.launch.browser", interactive()),
  host = getOption("shiny.host", "127.0.0.1"),
  display.mode = c("auto", "normal", "showcase")
)

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. 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 between 3000:8000, excluding ports that are blocked by Google Chrome for being considered unsafe: 3659, 4045, 5060, 5061, 6000, 6566, 6665:6669 and 6697. Up to twenty random ports will be tried.

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.

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.

display.mode

The mode in which to display the example. Defaults to showcase, but may be set to normal to see the example without code or commentary.

Examples

# List all available examples
# (be sure to use the name space prefix to avoid conflicts)
shiny.CSVImport::runExample()

## Only run this example in interactive R sessions
if (interactive()) {
  # Run one of the examples
  shiny.CSVImport::runExample("01_hello")
}

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

SigurdJanson/shinyCSVImpoMod documentation built on Jan. 5, 2023, 3:57 a.m.