Using R Markdown 2
and the YAML include
statement I can easily customize the header section, the beginning and the end of the body section using in_header
, before_body
and after_body
respectively, as described in the RMarkdown docu.
---
title: "Habits"
output:
html_document:
includes:
in_header: header.html
before_body: doc_prefix.html
after_body: doc_suffix.html
---
How can I do the same for the footer
section? (the output should be HTML)
A similar question has been asked here for PDF files and there is another answer for PDFs here. Still, I cannot transfer the solution to HTML footers as my knowledge of pandoc is too limited.
Thanks for your time!