Learn R Programming

highlight (version 0.4.2)

Hweave: Weaving and Tangling with syntax highlighting

Description

Hweave and Htangle are similar to Sweave and Stangle, but they take advantage of the custom driver shipped with this package

Usage

Hweave(file, driver = HighlightWeaveLatex(), 
        syntax = getOption("SweaveSyntax"), 
        encoding = "", ...)
    Htangle(file, driver = HighlightTangle(), 
        syntax = getOption("SweaveSyntax"), 
        encoding = "", ...)

Arguments

file
Path to Sweave source file.
driver
The actual workhorse, see the Details section in Sweave
syntax
NULL or an object of class SweaveSyntax or a character string with its name. See the section Syntax Definition in Sweave
encoding
The default encoding to assume for file
...
Further arguments passed to the driver's setup function.