How to dynamically name rmarkdown reports in scenarios?

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?
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,248 Neuron
I am not familiar with R but using Python you can easily create a file name with a custom name (like current date) and write it to a Dataiku Managed Folder which shoudl work also in R I think. Then you can use a Scenario mail reporter which can easily attach the contents of a managed folder removing the need to specifically point to a file which changes the name every day.