Sweave
files of a package by running
Sweave
and/or Stangle
on them. All
R source code files found after the tangling step are
source
ed to check whether all code can be
executed without errors.
checkVignettes(package, dir, lib.loc = NULL, tangle = TRUE, weave = TRUE, latex = FALSE, workdir = c("tmp", "src", "cur"), keepfiles = FALSE)
NULL
. The default value of NULL
corresponds to all
libraries currently known. The specified library trees are used to
search for package
.source
the extracted code?weave
and latex
are TRUE
and there is no Makefile in the vignettes
directory, run the weaved files through pdflatex
."tmp"
then a temporary directory is created,
this is the default. If "src"
then the directory containing
the vignettes itself is used, if "cur"
then the current
working directory of R is used.workdir != "tmp"
."checkVignettes"
, which is a list with the
error messages found during the tangle, source, weave and latex
steps. There is a print
method for displaying the
information contained in such objects.
If tangle
is true, this function runs Stangle
to
produce (one or more) R code files from each vignette, then
source
s each code file in turn.
If weave
is true, the vignettes are run through
Sweave
, which will produce a .tex file for each
vignette. If latex
is also true, texi2pdf
is run
on the .tex files from those vignettes which did not give
errors in the previous steps.