knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
This vignette tests has a very long TOC. You should be able to navigate to a heading near the bottom of the doc without having to scroll all the way down.
h2 <- paste0("## Heading ", t(outer(letters, 1:9, paste0))) knitr::asis_output(paste(h2, collapse = "\n\n"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.