runExample: Run dndselectr Example Applications

Description Usage Arguments References Examples

View source: R/dndselect.R

Description

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

Usage

1
2
3
4
5
6
7
runExample(
  example = NA,
  port = NULL,
  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. Defaults to choosing 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.

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.

References

runExample

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Only run this example in interactive R sessions
if (interactive()) {
  # List all available examples
  runExample()

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

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

serenity-r/dndselectr documentation built on March 12, 2021, 8:37 a.m.