Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tangleToR

An Sweave driver to retrieve code chunks


Description

A driver function for Sweave which will provide the user with code chunks from a vignette file within R. Functionality is very similar to that provided by Stangle except that an R object is returned as opposed to the chunks being written to a file.

Usage

tangleToR()

Value

An object of type chunkList is returned, which contains the code chunks from the vignette file.

Author(s)

Jeff Gentry

See Also

Examples

require("utils")
    testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package="utils")
    z <- Stangle(testfile,driver=tangleToR)

DynDoc

Dynamic document tools

v1.68.0
Artistic-2.0
Authors
R. Gentleman, Jeff Gentry
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.