Learn R Programming

knitr (version 0.6.3)

spin: Spin goat's hair into wool

Usage

spin(hair, knit = TRUE, report = TRUE, format = c("Rmd", "Rnw", "Rhtml", 
    "Rtex", "Rrst"), doc = "^#+'[ ]?", envir = parent.frame())

Arguments

hair
the path to the R script
knit
logical: whether to compile the document after conversion
report
logical: whether to generate report for Rmd, Rnw and Rtex output (ignored if knit = FALSE)
format
character: the output format (it takes five possible values); the default is R Markdown
doc
a regular expression to identify the documentation lines; by default it follows the roxygen convention, but it can be customized, e.g. if you want to use ##} to denote documentation, you can use '^##\\\\s*'}}

envir{the