This is an R HTML vignette. The file extension is*.Rhtml, andit has to include a special comment to tell R that this file needs to becompiled byknitr:
<!--%\VignetteEngine{knitr::knitr}%\VignetteIndexEntry{The Title of Your Vignette}-->Now you can write R code chunks:
You can also embed plots, for example:
For package vignettes, you need to encode images in base64 strings using theknitr::image_uri() function so that the image files are no longerneeded after the vignette is compiled. For example, you can add this chunk inthe beginning of a vignette: