runExample: Run Shiny Examples

View source: R/utils.R

runExampleR Documentation

Run Shiny Examples

Description

Launch Shiny example applications bundled in annotator.

Usage

runExample(example, ...)

Arguments

example

The name of the example to run. Available are: ⁠01_hello⁠, ⁠02_pipeline⁠

...

further arguments to pass to shiny::runApp()

Value

No return value, called for its side effects.

Examples

## Only run this example in interactive R sessions
if (interactive()) {
 annotator::runExample("01_hello")
 annotator::runExample("02_pipeline")

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

annotator documentation built on Oct. 18, 2023, 5:08 p.m.