Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

use_vignette

Create a vignette or article


Description

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).

Usage

use_vignette(name, title = name)

use_article(name, title = name)

Arguments

name

Base for file name to use for new vignette. Should consist only of numbers, letters, _ and -. Lower case is recommended.

title

The title of the vignette.

General setup

  • 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.

See Also

Examples

## Not run: 
use_vignette("how-to-do-stuff", "How to do stuff")

## End(Not run)

usethis

Automate Package and Project Setup

v2.0.1
MIT + file LICENSE
Authors
Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Jennifer Bryan [aut, cre] (<https://orcid.org/0000-0002-6983-2759>), RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.