One of the most powerful reporting techniques in RMarkdown is to generate also the Markdown code (especially headers) from within R. It is the purpose of this notebook to demonstrate this.
Like this, very large reports can be generated with just very little code, see an example output here: