Gmail, R and sending e mail with blastula

How do you share your R analyses with others? R Markdown is one great way, as a result of it’s simple to combine textual content narrative, calculation outcomes, and graphics. However how do you share your R Markdown paperwork with colleagues?

You would possibly submit them someplace, e mail them as attachments, or use RStudio Join (a industrial product) to share them. Or, you may flip an R Markdown doc into an e mail message, and ship it within the physique of your e mail, proper from R – ggplot graphs included. That’s due to the blastula package deal from RStudio.

Right here’s the way it works.

First, not surprisingly, set up and cargo the package deal with set up.packages("blastula") or remotes::install_github("rstudio/blastula").

Create an e mail message with blastula

There are two methods to create an e mail with blastula. My favourite is to start out with an R Markdown doc. Use blastula::blastula_email because the output format, be certain that to incorporate a title, and also you’re able to go. The opposite method is to make use of blastula’s compose_email() perform, which requires extra guide coding for greater than a easy textual content e mail. For this demo, I’ll use R Markdown.

I counsel creating an empty doc in RStudio by going to File > New File > R Markdown and clicking on the Create Empty Doc button.

Copyright © 2021 IDG Communications, Inc.

Source link