Usage
spin(hair, knit = TRUE, report = TRUE, text = NULL, envir = parent.frame(),
format = c("Rmd", "Rnw", "Rhtml", "Rtex", "Rrst"), doc = "^#+'[ ]?")
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*'}}
If te