I have a code that reads XML files that are in a corporate network folder, and generates a .RData
file. I have other codes that generate different reports for the different sectors, based on RData
. My problem is: these XML files are updated with different frequencies and I can not always tell when the last update was performed. I would like to know if there is a function that executes this other code (which generates RData
) whenever it generates a report, precisely to avoid a RData file based on outdated XML and to have to run the other code manually every time a new one requested.
PS: I know I can insert code that reads the XML into the report code, but I do not do this to keep the report from being too long.
Edit: The script leiturapastaDIPR.R
generates the file DIPRConsolidado.RData
. The RData is a list with 5 elements and each one is a Data Frame. Then this RData is loaded into the RMarkDown markdown.RMD
that generates the PDF of the report. If you need more information, just let me know!