Skip to content

Instantly share code, notes, and snippets.

@VincentGuyader
Created February 24, 2018 15:29
Show Gist options
  • Save VincentGuyader/c2b97aee53a9d7d5cf15ffdcde7d0f65 to your computer and use it in GitHub Desktop.
Save VincentGuyader/c2b97aee53a9d7d5cf15ffdcde7d0f65 to your computer and use it in GitHub Desktop.
My favorite Rmarkdown YAML header
---
title: "My analysis `r Sys.Date()`"
knit: (function(inputFile, encoding) { rmarkdown::render(inputFile, encoding = encoding, output_file = file.path(dirname(inputFile), glue::glue('myfile_{thinkr::clean_vec(date())}.html'))) })
output:
html_document:
toc: true
toc_float: true
code_folding: hide
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment