The runtime field lets you use Shiny in your R Markdown document, making it interactive. See the R Markdown book for examples.

yml_runtime(.yml, runtime = c("static", "shiny", "shiny_prerendered"))

Arguments

.yml

a yml object created by yml(), as_yml(), or returned by a yml_*() function

runtime

The runtime target for rendering. static, the default, renders static documents; shiny allows you to include use Shiny in your document. shiny_prerendered is a subset of the shiny runtime that allows pre-rendering of app components (see the R Markdown site for more)

Value

a yml object

See also

Examples

yml() %>% yml_runtime("shiny")
#> --- #> author: Malcolm Barrett #> date: '`r format(Sys.Date())`' #> runtime: shiny #> --- #>