rstudio / blastula

Easily send great-looking HTML email messages from R
https://pkgs.rstudio.com/blastula
Other
546 stars 84 forks source link

Using blastula to send multiple emails from RStudio Connect #332

Open dswos21 opened 4 months ago

dswos21 commented 4 months ago

I want to know how I can send multiple emails using blastula from rstudio connect, since I render the emails I want to send in different chunks and only the last chunk is sent

I show the example:

knitr::opts_chunk$set(echo = TRUE)
library (blastula)

  render_connect_email(input = "FX.Rmd") %>%
    attach_connect_email(
      subject = paste0("Anexo el cierre de FX a fecha ",tdy),
      attach_output = F,
      preview = T,
    )

  render_connect_email(input = "Blastula.Rmd") %>%
    attach_connect_email(
      subject = "Envio desde blastula",
      attach_output = F,
      preview = T
    )

Once I publish it in connect, only the volatilidad chunk is sent