openApp | R Documentation |
Opens an example Shiny app into the RStudio editor.
openApp(dir = "mini", ...)
dir |
character: name of the app |
... |
further parameter given to |
invisibly the result of navigateToFile
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.