Rev 85953 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/tools/man/SweaveTexFilter.Rd% Part of the R package, https://www.R-project.org% Copyright 2009-2013 R Core Team% Distributed under GPL 2 or later\name{SweaveTeXFilter}\alias{SweaveTeXFilter}\title{Strip R Code out of Sweave File}\description{This function blanks out code chunks and \I{Noweb} markup in an Sweaveinput file, for spell checking or other uses.}\usage{SweaveTeXFilter(ifile, encoding = "unknown")}\arguments{\item{ifile}{Input file or connection.}\item{encoding}{Text encoding to pass to \code{\link{readLines}}.}}\details{This function blanks out all \I{Noweb} markup and code chunks from anSweave input file, leaving behind the LaTeX source, so that aLaTeX-aware spelling checker can check it and report errors in theiroriginal locations.}\value{A character vector which if written to a file, one element per line,would duplicate the text elements of the original Sweave input file.}\author{Duncan Murdoch}\seealso{\code{\link{aspell}}, for which this is used with \code{filter = "Sweave"}.}\keyword{ utilities }\keyword{ documentation }