In rmarkdown you can create a file _output.yamlthat has common parameters for output formats only ( link )
html_document:
toc: true
pandoc_args: ['--base-header-level', 2]
pdf_document:
toc: true
pandoc_args: ['--base-header-level', 2]
My question is: Is it possible to share parameters without output in _output.yaml? Closer to the format used as frontmatter in standard rmarkdown.
eg:.
bibliography: ../library.bib
author: me
output:
html_document:
toc: true
pandoc_args: ['--base-header-level', 2]
pdf_document:
toc: true
pandoc_args: ['--base-header-level', 2]
so that any document I renderin this directory will automatically receive the author "me", the specified bibliography path and output parameters? (Currently, if I do this, he is complaining about a call eval, mostly trying to evaluate the value of my first option. "object '..' not found").
, , (, , ).
, (ab) pandoc_args, , , _output.yaml. , ["--bibliography", "./library.bib", "--variable", "author:me"] , , , .
, , ; , pandoc. , pandoc config.yaml chapter1.md chapter2.md , render(c('config.yaml', 'chapter1.md', 'chapter2.md')) .
: (, toc: true ) ?