Created
February 24, 2018 15:29
-
-
Save VincentGuyader/c2b97aee53a9d7d5cf15ffdcde7d0f65 to your computer and use it in GitHub Desktop.
My favorite Rmarkdown YAML header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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