add_vignette | R Documentation |
This function adds a vignette in the folder vignettes/
. It also adds
dependencies knitr
and
rmarkdown
in the
field Suggests
of the DESCRIPTION
file (if not already present in
fields Imports
).
add_vignette(
filename = NULL,
title = NULL,
open = TRUE,
overwrite = FALSE,
quiet = FALSE
)
filename |
A character of length 1. The name of the |
title |
A character of length 1. The title of the vignette. If |
open |
A logical value. If |
overwrite |
A logical value. If this file is already present and
|
quiet |
A logical value. If |
No return value.
Other create files:
add_citation()
,
add_code_of_conduct()
,
add_compendium()
,
add_contributing()
,
add_description()
,
add_dockerfile()
,
add_license()
,
add_makefile()
,
add_package_doc()
,
add_readme_rmd()
,
add_renv()
,
add_testthat()
## Not run:
## Default vignette ----
add_vignette()
## Default vignette ----
add_vignette(filename = "pkg", title = "Get started")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.