use_vignette | R Documentation |
Creates a new vignette or article in vignettes/
. Articles are a special
type of vignette that appear on pkgdown websites, but are not included
in the package itself (because they are added to .Rbuildignore
automatically).
use_vignette(name, title = name)
use_article(name, title = name)
name |
Base for file name to use for new vignette. Should consist only
of numbers, letters, |
title |
The title of the vignette. |
Adds needed packages to DESCRIPTION
.
Adds inst/doc
to .gitignore
so built vignettes aren't tracked.
Adds vignettes/*.html
and vignettes/*.R
to .gitignore
so
you never accidentally track rendered vignettes.
The vignettes chapter of R Packages.
## Not run:
use_vignette("how-to-do-stuff", "How to do stuff")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.