Pandoc's mardown date.
pandoc.date.return(x, inline = TRUE, simplified = FALSE)
date or vector of dates
if to render vector of dates as inline paragraph or not (as list)
if just add date formatting to vector of dates
By default this function outputs (see: cat) the result. If you would want to catch the result instead, then call the function ending in .return.
cat
.return
# NOT RUN { pandoc.date(Sys.Date()) pandoc.date(Sys.Date() - 1:10) pandoc.date(Sys.Date() - 1:10, inline = FALSE) # }
Run the code above in your browser using DataCamp Workspace