library(knitr)
out = NULL for (i in as.character(unique(iris$Species))) { # out = c(out, knit_expand(text='#### Species = {{i}}')) out <- paste0("\n\n### ", i, "###\n\n```r\n\ncat(i)\n\n```\n\n \n\n\\newpage") }
r paste(knit(text = out), collapse = '\n')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.