Run {video} Example Applications

runVideoExample(example = "basic", display.mode = "showcase", ...)

availableVideoExamples()

Arguments

example

Name of the example to load. Current examples include:

basic

Basic example of video in use

full

Basic example of using all buttons available in video

server

Example showing server-side functionality

display.mode

The mode in which to display the application. By default set to "showcase" to show code behind the example.

...

Optional arguments to send to shiny::runApp

Value

This function does not return a value; interrupt R to stop the application (usually by pressing Ctrl+C or Esc).

Examples

availableVideoExamples()
#> 'basic', 'full', 'index.html', 'server', 'shared'

if (interactive()) {
  library(shiny)
  library(video)

  runVideoExample("server")
}