openApp {shinyDTC}R Documentation

openApp

Description

Opens an example Shiny app into the RStudio editor.

Usage

openApp(dir = "mini", ...)

Arguments

dir

character: name of the app

...

further parameter given to rstudioapi::navigateToFile()

Value

invisibly the result of navigateToFile

Examples

# Example requires the use of a `shiny` app (See Vignette)
# Runs only in RStudio and in an interactive session
if (interactive()) {
  # Runs the minimal example app file in the editor
  openApp("mini")
}

## Not run: 
# If the directory doesn't match, an error will appear
openApp("nonexistent")

## End(Not run)

[Package shinyDTC version 0.1.0 Index]