Rev 32054 | Rev 38184 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{vignette}\alias{vignette}\alias{edit.vignette}\alias{print.vignette}\title{View or List Vignettes}\description{View a specified vignette, or list the available ones.}\usage{vignette(topic, package = NULL, lib.loc = NULL)\S3method{print}{vignette}(x, \ldots)\S3method{edit}{vignette}(name, \ldots)}\arguments{\item{topic}{a character string giving the (base) name of the vignetteto view. If omitted, all available vignettes are listed.}\item{package}{a character vector with the names of packages tosearch through, or \code{NULL} in which case \emph{all} availablepackages in the library trees specified by \code{lib.loc} aresearched.}\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.}\item{x, name}{Object of class \code{vignette}.}\item{\ldots}{Ignored by the \code{print} method, passed on to\code{\link{file.edit}} by the \code{edit} method.}}\details{Function \code{vignette} returns an object of the same class, theprint method opens a viewer for it.Currently, only PDF versions of vignettes can be viewed.#ifdef unixThe program specified by the \code{pdfviewer} option is used for this.#endifIf several vignettes have PDF versions with base name identical to\code{topic}, the first one found is used. The \code{edit} methodextracts the R code from the vignette to a temporary file and opensthe file in an editor.If no topics are given, the available vignettes are listed. Thecorresponding information is returned in an object of class\code{"packageIQR"}. The structure of this class is experimental.}\examples{## List vignettes in all attached packagesvignette()\dontrun{## Open the grid intro vignettevignette("grid")## The samev1 <- vignette("grid")print(v1)## Now let us have a closer look at the codeedit(v1)## A package can have more than one vignette (package grid has several):vignette(package="grid")vignette("rotated")## The same, but without searching for it:vignette("rotated", package="grid")}}\keyword{documentation}