Debian Codegraph @

tests/rmd/yaml-r-code.Rmd

raw
1 ---
2 title: "Inline R code in YAML"
3 output: pdf_document
4 header-includes:
5 - \usepackage{`r "ae"`}
6 ---
7
8 R code in YAML should be evaluated before YAML is passed to Pandoc: https://github.com/rstudio/rmarkdown/issues/1709