How can I add YAML current date in rmarkdown ?

0 votes
May 28, 2018 in Data Analytics by shams
• 3,580 points
3,766 views

3 answers to this question.

+1 vote

In order to do so, you will have to make the date field valid in YAML by quoting the inline R expression, i.e.

date: "`r format(Sys.time(), '%d %B, %Y')`"
The parsing error will be gone, and the date will be generated in the markdown output.
Pandoc can use the value from Sys.time().

answered May 28, 2018 by zombie
• 3,750 points
+1 vote
<$today:MM/dd/yyyy>
answered Mar 25, 2019 by Anupam Das
0 votes
---

title: ""

output: html_document

dates: "`r Sys.time()`"

---
answered Aug 5, 2019 by anonymous

Related Questions In Data Analytics

0 votes
1 answer

How can I define Global Variables in R?

The variables declared inside a function are ...READ MORE

answered Apr 25, 2018 in Data Analytics by shams
• 3,580 points
3,068 views
0 votes
1 answer

How can I delete multiple values from a vector in R?

The %in% operator tells  which elements are ...READ MORE

answered Apr 26, 2018 in Data Analytics by shams
• 3,580 points
1,952 views
0 votes
1 answer

How can I remove duplicated rows in R ?

The function distinct() in the dplyr package ...READ MORE

answered Apr 26, 2018 in Data Analytics by shams
• 3,580 points
1,679 views
0 votes
1 answer

How can I control the size of points in an R scatterplot?

plot(variable, type='o' , pch=5, cex=.3) The pch argument ...READ MORE

answered May 3, 2018 in Data Analytics by shams
• 3,580 points
93 views
0 votes
1 answer

How to pass command line arguments to run a Rscript

1. For taking an argument from the ...READ MORE

answered Aug 6, 2018 in Data Analytics by Anmol
• 1,700 points
1,620 views
+9 votes
3 answers

Which is a better initiative to learn data science: Python or R?

Well it truly depends on your requirement, If ...READ MORE

answered Aug 8, 2018 in Data Analytics by Abhi
• 3,680 points
148 views
0 votes
4 answers

Python vs. R for data science

I would say both Python and R ...READ MORE

answered Aug 1, 2019 in Data Analytics by briny
202 views
0 votes
1 answer

Why is data cleaning needed?

Data cleaning is the fourth step in ...READ MORE

answered Nov 14, 2018 in Data Analytics by Maverick
• 10,820 points
79 views
0 votes
1 answer

How can I add x and y axis labels in ggplot2 ?

# Load a dataset(to work with) # We’ll ...READ MORE

answered May 16, 2018 in Data Analytics by zombie
• 3,750 points
242 views
0 votes
1 answer

How can I drop columns by name in a data frame ?

We can Drop Columns by name in ...READ MORE

answered Apr 13, 2018 in Data Analytics by zombie
• 3,750 points
952 views