

It has YAML metadata at the top, some non-executed code chunks, some executed code chunks. It allows writing vignettes in R Markdown. knitr::rmarkdown vignette engine is the one recommended in the R packages book, and usethis. The building of package vignettes can either use the default Sweave vignette engine, or a vignette engine provided by a CRAN package like knitr by Yihui Xie. Infrastructure & dependencies for vignettes


Still, it’s useful to know about vignettes for debugging problems or finding workarounds for issues you might encounter.

Function documentation is great if you know the name of the function you need, but it’s useless otherwise." 1 In “Writing R Extensions”, vignettes are defined as “documents in PDF or HTML format obtained from plain-text literate source files from which R knows how to extract R code and create output (in PDF/HTML or intermediate LaTeX).". In the “R packages” book by Hadley Wickham and Jenny Bryan, the vignettes chapter starts with “A vignette is a long-form guide to your package. In this section we shall go over basics of package vignettes. Yet another post with a focus on package documentation! This time, we’ll cover vignettes a.k.a “long-form package documentation”, both basics around vignette building and infrastructure, and some tips for more maintainer- and user- friendliness.
