Rev 30461 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{checkVignettes}\alias{checkVignettes}\alias{print.checkVignettes}\title{Check Package Vignettes}\description{Check all \code{\link{Sweave}} files of a package by running\code{\link{Sweave}} and/or \code{\link{Stangle}} on them. AllR source code files found after the tangling step are\code{\link{source}}ed to check whether all code can beexecuted without errors.}\usage{checkVignettes(package, dir, lib.loc = NULL, tangle = TRUE,weave = TRUE, workdir = c("tmp", "src", "cur"),keepfiles = FALSE)}\arguments{\item{package}{a character string naming an installed package. Ifgiven, Sweave files are searched in subdirectory \code{doc}.}\item{dir}{a character string specifying the path to a package's rootsource directory. This subdirectory \code{inst/doc} is searched forSweave files.}\item{lib.loc}{a character vector of directory names of \R libraries,or \code{NULL}. The default value of \code{NULL} corresponds to alllibraries currently known. The specified library trees are used toto search for \code{package}.}\item{tangle}{Perform a tangle and \code{\link{source}} the extraced code?}\item{weave}{Perform a weave?}\item{workdir}{Directory used as working directory while checking thevignettes. If \code{"tmp"} then a temporary directory is created,this is the default. If \code{"src"} then the directory containingthe vignettes itself is used, if \code{"cur"} then the currentworking directory of \R is used.}\item{keepfiles}{Delete file in temporary directory? This option isignored when \code{workdir!="tmp"}.}}\value{An object of class \code{"checkVignettes"} which is a list with theerror messages found during the tangle and weave steps. There is a\code{print} method for nicely displaying the informationcontained in such objects.}\keyword{utilities}\keyword{documentation}