How to Automate PDF Reporting with R