Automatic E-mailing of pdf graphical output at specific times from R
email, pdf, r
Solution
You can harness the power of a package that can handle emails coupled with a chron job. On Windows 7, I've achieved something akin to this using Windows Task Scheduler. Basically, you set it to run a particular script at a specified time.
Problem
I have some scripts I'd like to run each morning at 6am. These scripts produce some pdfs of graphical output into a file: `foo.pdf` I'd like my system (let's say `Win 7`, >= `R 2.13`) to email me these pdf's once the system has finished running the scripts. Which is the best package - and most robust way of setting it up - to have these reports emailed to me directly via attachment from R? Are there any 'cool' extensions to this (like `sink()` -ing report text output into the body of the email)? Thanks in advance for any advice.