title: How to send an email with attachment from R in windows
body: <p>I have a scheduled an R script running from a windows machine. </p>
  
  <p>After it finishes, I wish this script to automatically send an email with some log file attached.  </p>
  
  <p>Using <code>shell()</code> with some other scripts may be possible, but I was wondering if there is a better solution within R. 
  Thanks.</p>