title: how do you convert a data frame to a table to send as an email body
body: <p>I have this data frame:</p>
  
  <pre><code>library(sendmailR)
  library(pander)
  
  dput(s)
  structure(list(Description = c("ServerA", "ServerB", "ServerC", 
  "ServerD", "ServerE", "ServerF"), Value = c("2", "2", "100", 
  "100", "80", "20")), .Names = c("Description", "Value"), row.names = c(NA, 
  6L), class = "data.frame")
  </code></pre>
  
  <p>I would like to put this data frame in a nice looking table and email it to some people.</p>
  
  <p>I tried it with pandoc but the table looks very plain:</p>
  
  <pre><code> t&lt;-pandoc.table.return(s, caption="Server CPU Utilization")
  
      from &lt;- "user@example.com"
      to &lt;- c("end_users@example.com")
      subject &lt;- paste(Sys.time()," Servers CPU utilization")
      body &lt;- t                
      mailControl=list(smtpServer="mailhost.example.net")
  
      sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)
  </code></pre>
  
  <p>Is there any other way to format a data frame into nice looking table to send as email? Table has to be in the email body, not as an attachment.</p>