How can I add YAML current date in rmarkdown ?

0 votes
May 28, 2018 in Data Analytics by shams
• 3,580 points
1,625 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,690 points
+1 vote
<$today:MM/dd/yyyy>
answered Mar 25 by Anupam Das
0 votes
---

title: ""

output: html_document

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

---
answered Aug 5 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
1,339 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
124 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
665 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
34 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,610 points
135 views
0 votes
4 answers

Python vs. R for data science

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

answered Aug 1 in Data Analytics by briny
106 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
21 views
0 votes
2 answers

What are the steps in data analysis process?

Well explained @Maverick, In simple words the ...READ MORE

answered Aug 22 in Data Analytics by anonymous
• 25,900 points
68 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
116 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
36 views