How do you share your R analyses with many others? R Markdown is a single good way, since it is simple to blend text narrative, calculation final results, and graphics. But how do you share your R Markdown files with colleagues?

You could possibly post them somewhere, electronic mail them as attachments, or use RStudio Connect (a professional product) to share them. Or, you can convert an R Markdown document into an electronic mail information, and mail it in the entire body of your electronic mail, appropriate from R – ggplot graphs bundled. That’s thanks to the blastula package from RStudio.

Here’s how it is effective.

To start with, not remarkably, install and load the package with install.offers("blastula") or controllers::install_github("rstudio/blastula").

Create an electronic mail information with blastula

There are two approaches to produce an electronic mail with blastula. My most loved is to get started with an R Markdown document. Use blastula::blastula_electronic mail as the output format, make sure to contain a title, and you are ready to go. The other way is to use blastula’s compose_electronic mail() operate, which necessitates extra manual coding for extra than a uncomplicated text electronic mail. For this demo, I’ll use R Markdown.

I suggest generating an empty document in RStudio by heading to File > New File > R Markdown and clicking on the Create Vacant Document button.

Copyright © 2021 IDG Communications, Inc.