teachingApp: Render a teachingApp With Options

Description Usage Arguments Details Value See Also Examples

View source: R/teachingApp.R

Description

Renders a teachingApp as a stand-alone shiny app or as an element within an rmarkdown document.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
teachingApp(
  app_name = NULL,
  theme = "flatly",
  width = "100%",
  height = "800px",
  icon = "fa fa-github",
  img = NULL,
  git_user = "Auburngrads",
  more_opts = list(NA),
  launch.browser = TRUE,
  ...
)

Arguments

app_name

character Name of the app to be rendered

theme

character Name of a bootswatch color theme (provided by shinythemes::shinytheme)

width

character The width of the printed app (in pixels)

height

character The height of the printed app (in pixels)

icon

character A fontAwesome icon to be placed in the footer of a navbarPage app

img

character A path (or URL) to an image to be placed in the footer of a navbarPage app

git_user

character GitHub username used in the branding logo

more_opts

A list of additional options/objects that can be passed to the app (see Details)

launch.browser

logical If TRUE The app launches in the user's default browser

...

A list of additional options passed to shiny::shinyAppDir()

Details

The teachingApps package provides an infrastructure that allows users to dynamically change the appearance and function of shiny apps. R users a familiar with writing functions to dynamically alter some output - in this case the output is a app. Normally,

Value

A printed shiny app

See Also

codelinkcreate_logo

codelinkadd_logo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
teachingApps(app_name = 'distribution_weibull', 
             theme = 'spacelab', 
             height = '800px')

teachingApps(app_name = 'maximum_likelihood_simulation',
             theme = 'flatly',
             height = '600px')

## End(Not run)

teachingApps documentation built on July 1, 2020, 5:58 p.m.