spin

0th

Percentile

Spin goat's hair into wool

Usage
spin(hair, knit = TRUE, report = TRUE, text = NULL, envir = parent.frame(), 
    format = c("Rmd", "Rnw", "Rhtml", "Rtex", "Rrst"), doc = "^#+'[ ]?", 
    inline = "^[{][{](.+)[}][}][ ]*$", comment = c("^[# ]*/[*]", "^.*[*]/ *$"), 
    precious = !knit && is.null(text))
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)
text
a character vector as an alternative way to hair to provide the R source; if text is not NULL, hair will be ignored
envir
the environment for knit() to evaluate the code
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*'}}

inline{a regular exp

Aliases
  • spin
Documentation reproduced from package knitr, version 1.7, License: GPL

Community examples

Looks like there are no examples yet.