tangleToR: An Sweave driver to retrieve code chunks

Description Usage Value Author(s) See Also Examples

View source: R/tangleToR.R

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

1

Value

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

Author(s)

Jeff Gentry

See Also

Stangle,Sweave, chunkList

Examples

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

DynDoc documentation built on May 31, 2017, 10:57 a.m.

Search within the DynDoc package
Search all R packages, documentation and source code