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 main report document.
The diamonds
table can be included in the same way:
Note that the echo = FALSE
parameter was added to each of the code chunks to prevent printing of the R code that generated the object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.