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 html_vignette
format:
Some projects use obscure packages or specific package versions. Installing packages into R's global package library does not work well in this situation. Instead, one would like to isolate such fragile packages into per-project local libraries. An easy way to achieve this goal is via project local .Rprofile
.
### Project local '.Rprofile'. Lives in '.PRJ_ROOT': if (file.exists('~/.Rprofile')) { # read user's ~/.Rprofile source('~/.Rprofile') } ### library containing locally installed packages: .libPaths('lib/R')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.