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



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


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)


a yml object

See also


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