How to dynamically name rmarkdown reports in scenarios?

Abhijith
Abhijith Registered Posts: 3

I'm working on a project that requires me to send an R Markdown report to a Box folder via email daily. However, the emailed file has the same name each day, leading to overwrites and versioning issues (e.g., v1, v2, v3).


I'd like to automate this process by adding the current date to the filename of the emailed report. Currently, the generated R Markdown file:
1) Is either sent as an email with the same filename (and I can't find its temporary storage location).

2) Or I have to manually download and rename it before sending, which does not serve the purpose of automation.


Has anyone encountered this issue and found a solution?

Tagged:

Answers

Setup Info
    Tags
      Help me…