automatic assign file name in R markdown

Hi team,

I use R markdown to generate reports in html, docx format. But I have to manually rename the output file in case to overwrite the old version.
I want to automatic add date information to file name in R markdown. Do you know how to do it?


Rather than pushing the knit button, you can call
rmarkdown::render(input = "inputfile", output_file = "outputFile")

Hi startz,
The code works well.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.