Rev 46769 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/tools/man/parse_Rd.Rd% Part of the R package, http://www.R-project.org% Copyright 2008 R Core Development Team% Distributed under GPL 2 or later\name{parse_Rd}\alias{parse_Rd}\title{ Parse an Rd file }\description{This function reads an R documentation (Rd) file anad parses it, for processingby other functions.}\usage{parse_Rd(file, srcfile = NULL, encoding = "unknown", verbose = FALSE)}\arguments{\item{file}{ A filename or text connection. }\item{srcfile}{ \code{NULL}, or a \code{"srcfile"} object. See the \sQuote{Details} section.}\item{encoding}{ Encoding to be assumed for input strings. }\item{verbose}{ Logical indicating whether detailed parsing information should be printed. }}\details{This experimental function parses Rd files according to the specification givenin \url{http://developer.r-project.org/ParseRd.pdf}. At the current writing, thisis not identical to the rules used by other tools: it is somewhat stricter.}\value{An object of class \code{"Rd"}. The internal format of this object issubject to change.}\section{Warning}{These functions are still experimental. Names, interfaces and valuesmight change in future versions.}\references{ \url{http://developer.r-project.org/ParseRd.pdf} }\author{ Duncan Murdoch }\seealso{ \code{\link{Rd_parse}}, the currently used function for parsingRd files.}\examples{baseRd <- Rd_db("base")con <- textConnection(baseRd[[1]], "rt")parse_Rd(con)close(con)}\keyword{utilities}\keyword{documentation}