Learn R Programming

R.rsp (version 0.43.1)

parseVignette: Parses an Rnw file

Description

Parses an Rnw file.

Usage

parseVignette(pathname, commentPrefix="^[ \t]*%[ \t]*", final=FALSE, source=FALSE,
  maxLines=-1L, ...)

Arguments

pathname

The Rnw file to be parsed.

commentPrefix

A regular expression specifying the prefix pattern of vignette comments.

final

If TRUE, the output PDF or HTML file is also located.

source

If TRUE, the output R source code file is also located.

maxLines

The maximum number of lines to scan.

...

Not used.

Value

Returns a named list or NULL if a non-vignette.