shiny_demo | R Documentation |
shiny_demo
is a user-friendly interface to running Shiny applications
from R packages. For package developers, simply put Shiny apps in the
inst/shiny
directory in your package. This function will find any
apps located there in the installed package.
shiny_demo( topic, package = NULL, lib.loc = NULL, verbose = getOption("verbose"), includeAllInstalled = FALSE, ... )
topic |
the topic/app which should be run. |
package |
the package which contains the app to run. If |
lib.loc |
a character vector of directory names of R libraries, or NULL. The default value of NULL corresponds to all libraries currently known. If the default is used, the loaded packages are searched before the libraries. |
verbose |
a logical. If TRUE, additional diagnostics are printed. |
includeAllInstalled |
a logical. If TRUE and topic not specified, all Shiny apps from all installed packages will be listed. |
... |
parameters passed to [shiny::runApp] or to the Shiny app itself. |
Jason Bryer (jason@bryer.org)
## Not run: library(ShinyDemo) shiny_demo() # this should at least return the Shiny apps in this package shiny_demo(topic = 'df_viewer', package = 'ShinyDemo') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.