Using R markdown and knitr: Possible to get R objects interpreted in YAML
I am using knitr , R markdown , and a custom LaTeX file to write a manuscript. The abstract is set as part of the YAML frontmatter. This works great, except that the results that I would like to include in the abstract are generated later in the document. Having the abstract in the YAML makes some sense to me and I would prefer to keep it this way. Any thoughts on a way to have the abstract take advantage of calculations that happen later in the document? A brief example: --- title: 'How do I interpret R objects in YAML that are created in the document?' author: Jeff Hollister output: pdf