Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on January 29, 2025 3:29PM
Likes: 0
Replies: 1
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?
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.