Learn R Programming

teachingApps (version 1.0.8)

teachingApp: Render a teachingApp With Options

Description

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

Usage

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()

Value

A printed shiny app

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,

See Also

codelinkcreate_logo

codelinkadd_logo

Examples

Run this code
# NOT RUN {
teachingApps(app_name = 'distribution_weibull', 
             theme = 'spacelab', 
             height = '800px')

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

Run the code above in your browser using DataLab