I have been working on my webpage, created in a Jekyll template and hosted by Github.
When I try to include the date in the YAML of a .rmd document, the commit fails. There is no error message, but it does not update the webpage.
This YAML is failing.
---
title: "My Title"
author: "Author"
date: "`r format(Sys.time(), '%d %B, %Y')`"
layout: default
permalink: /pages/Folder/Name/
output: html_document
---
However, when I try to add the date as the author, it appears without any problem (i.e., the commit is successful, and the page is updated).
---
title: "My Title"
author:
- "Author"
- "`r format(Sys.time(), '%d %B, %Y')`"
layout: default
permalink: /pages/Folder/Name/
output: html_document
---
So, the last option works, but it is not cooler.
Could someone tell me what document should I modify? I have tried multiple formats for:
date: "April 20, 2017"
'r format(Sys.time(), '%d %B, %Y')
'
Thanks in advance.