library(tidyverse)
We can include parts from the parent "connect-example-main.Rmd"
document by adding an empty R Markdown code chunk with a matching name (in this case diamonds_plot
). This is great because we can reuse parts from the parent report document.
The real estate table (from the parent document's dallas_home_sales
chunk) can be included in the same way:
Note that the echo=FALSE
parameter was added to each of the the code chunks to prevent printing of the R code that generated the plot (we just want the output for the email).
The dallas_home_sales
object (from the namesake R code chunk) is also available and can be further processed to generate different output just for the email document.
dallas_home_sales %>% filter(year %in% 2011:2015)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.