mailR: how to send rmarkdown documents as body in email?
问题 How to send rmarkdown generated documents as a body in an email, using R? I have successfully tried knitr with mailR , but when instead generating the html-report with the (new) rmarkdown -package it fails. library(mailR) send.mail( from = "FROM@gmail.com", to = "TO@gmail.com", subject = "MyMail", html = T, inline = T, body = "my_report.html", smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "USERNAME", passed = "PASSWORD", ssl = T), authenticate = T, send = T ) error: org