flair_chunk <- function(colors) {
c(
"```{r flair_color, echo=FALSE}",
"library(flair)",
paste0(names(colors), " <- \"", colors, "\""),
"```"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.