| tangleToR {DynDoc} | R Documentation |
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.
tangleToR()
An object of type chunkList is returned, which contains the
code chunks from the vignette file.
Jeff Gentry
library(tools)
testfile <- file.path(.path.package("tools"),
"Sweave", "Sweave-test-1.Rnw")
if (file.exists(testfile))
z <- Stangle(testfile,driver=tangleToR)