How can I add YAML current date in rmarkdown ?

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

2 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,690 points
+1 vote
<$today:MM/dd/yyyy>
answered Mar 25 by Anupam Das

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
963 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
71 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
478 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
24 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,620 points
83 views
0 votes
3 answers

Python vs. R for data science

Hello Well there are lots of difference between ...READ MORE

answered Mar 30 in Data Analytics by MrBoot
• 1,210 points
71 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,040 points
14 views
0 votes
1 answer

What are the steps in data analysis process?

Need to follow these steps: Data requirements – ...READ MORE

answered Nov 14, 2018 in Data Analytics by Maverick
• 10,040 points
27 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,690 points
87 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,690 points
29 views