knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Vignettes are long form documentation commonly included in packages. Because they are part of the distribution of the package, they need to be as compact as possible. The
html_vignette output type provides a custom style sheet (and tweaks some options) to ensure that the resulting html is as small as possible. The
library(rddt) set_cl(fork_cluster, n_nodes = 2L) dat <- rddt( a = rnorm(n = 1e5), b = sample(letters, size = 1e5, TRUE) ) rm_cl()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.