I'd like to generate a template for rmarkdown that automatically inserts static values into the template. Specifically, I'd like to insert the current date (formatted as DD Month YYYY) into the header and text and the current user's name into the header.
---
title: "Template Title"
author: "Your Name"
date: "The Date"
output:
pdf_document:
toc: yes
---
# Version History
* The Date: Initial version
Where it currently says Your Name
and The Date
, I'd like those to be replaced with the current username and formatted date (as occurs when creating a new rmarkdown document in RStudio).
Edit: As I'm looking for static and not dynamic values, this question differs from YAML current date in rmarkdown.