我创建了两个表,希望使用R在正文中发送。
当前,我正在使用mailR软件包,并设法发送了其中一个表,但是我找不到在电子邮件中包含两个表的方法。请注意,两个表的列数不同(因此我无法追加它们)。有什么建议么?谢谢
send.mail (from = "email",
to = c("email"),
subject = "Something",
body = print(xtable(tablename), type = "html",
format.args = list(big.mark = ",", decimal.mark = "."),
size="\\fontsize{10pt}\\Arial",
booktabs = TRUE,
include.rownames = FALSE),
html = TRUE,
smtp = list(host.name = "hostname"),
attach.files = c(paste0("G:/",
format(Sys.time(), "%d-%b-%Y"), ".xlsx")),
send = TRUE)