In RMarkdown, I seem to be able to create โsomeโ dynamic variables in the YAML header, but not for others:
For example, this works:
---
title:
"Some Title, `r format(Sys.time(), '%d %B, %Y')`"
...
---
But it is not.
...
pdf_document:
keep_tex: `r 'true'`
But this is DOES (i.e. not dynamic).
...
pdf_document:
keep_tex: true
So, how can I โdynamicallyโ assign keep_texeither true or false, what I want to do is something like this:
...
pdf_document:
keep_tex: `r getOption('mypackage.keep_tex')`
source
share