build_vignettes | R Documentation |
Builds package vignettes using the same algorithm that R CMD build
does. This means including non-Sweave vignettes, using makefiles (if
present), and copying over extra files. The files are copied in the 'doc'
directory and an vignette index is created in 'Meta/vignette.rds', as they
would be in a built package. 'doc' and 'Meta' are added to
.Rbuildignore
, so will not be included in the built package. These
files can be checked into version control, so they can be viewed with
browseVignettes()
and vignette()
if the package has been
loaded with load_all()
without needing to re-build them locally.
build_vignettes( pkg = ".", dependencies = "VignetteBuilder", clean = TRUE, upgrade = "never", quiet = FALSE, install = TRUE, keep_md = TRUE )
pkg |
The package to use, can be a file path to the package or a
package object. See |
dependencies |
Which dependencies do you want to check? Can be a character vector (selecting from "Depends", "Imports", "LinkingTo", "Suggests", or "Enhances"), or a logical vector.
The value "soft" means the same as You can also specify dependencies from one or more additional fields, common ones include:
|
clean |
Remove all files generated by the build, even if there were copies there before. |
upgrade |
Should package dependencies be upgraded? One of "default", "ask", "always", or "never". "default"
respects the value of the |
quiet |
If |
install |
If |
keep_md |
If |
clean_vignettes()
to remove the pdfs in
‘doc’ created from vignettes
clean_vignettes()
to remove build tex/pdf files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.