Package 'demoShiny'

Title: Runs a 'Shiny' App as Demo or Lists All Demo 'Shiny' Apps
Description: Mimics the demo functionality for 'Shiny' apps in a package. Apps stored to the package subdirectory 'inst/shiny' can be called by demoShiny(topic).
Authors: Sigbert Klinke [aut, cre]
Maintainer: Sigbert Klinke <[email protected]>
License: GPL-3
Version: 0.2
Built: 2025-02-05 02:54:44 UTC
Source: https://github.com/sigbertklinke/demoshiny

Help Index


demoShiny

Description

Runs a Shiny app as demo or shows an overview of all Shiny demo apps related to a topic. If more than one app relates to topic a list of apps is returned otherwise the app is run. For more details see vignettes('demoShiny').

Usage

demoShiny(topic, verbose = FALSE)

Arguments

topic

character: the topic which should be demonstrated

verbose

logical: should file locations printed, too (default: FALSE)

Value

invisibly a data frame with topic, info and file location

Examples

# collect all apps of loaded packages
demoShiny() 
demoShiny(verbose=TRUE) 
# collect all apps of the package demoShiny or with the name demoShiny
demoShiny('demoShiny') 
if(interactive()) {
  demoShiny('demoShiny::hist') 
  demoShiny('silhouette') 
  # use partial matching
  demoShiny('silh') 
}