A truly lazy way to insert today's date into an Rmarkdown document. To use, write date: nicethings::yaml_today() in the YAML header of an Rmarkdown document. Pinched from https://stackoverflow.com/a/25389694

yaml_today()

Examples

if (FALSE) {
 # An example yaml header would go
 date: '`r nicethings::yaml_today()`'
}