Sweave
(or other custom weave function)
and texi2dvi
on all vignettes
of a package.buildVignettes(package, dir, lib.loc = NULL, quiet = TRUE,
clean = TRUE, tangle = FALSE)pkgVignettes(package, dir, subdirs = NULL, lib.loc = NULL,
output = FALSE, source = FALSE, check = FALSE)
doc
.vignettes
(or if it
does not exist inst/doc
) is searched for vignette source
files.NULL
. The default value of NULL
corresponds to all
libraries currently known. The specified library trees are used to
search for package
.texi2pdf
in quiet mode.dir
in which
to look for vignettes. The first which exists is used. Defaults to
"doc"
if package
is supplied, otherwise "vignettes"
.outputs
).sources
).TRUE
, check whether all files that
have vignette-like filenames have an identifiable vignette engine.
This may be a false positive if a file is not a vignette but has a
filename matching a pattern defined by one of the vignette engines.buildVignettes
is called for its side effect of creating the
PDF versions of all vignettes, and if tangle = TRUE
,
extracting the R code. pkgVignettes
returns an object of class "pkgVignettes"
if a vignette directory is found, otherwise NULL
.buildVignettes
is used by R CMD build
and R CMD
check
to (re-)build vignette PDFs from their sources.gVigns <- pkgVignettes("grid")
str(gVigns)<!-- % because it contains paths -->
Run the code above in your browser using DataCamp Workspace