knitInRStudio {patchDVI} | R Documentation |
Trigger processing of chapter files from RStudio.
Description
If this function is executed within RStudio, it will knit all child from the main file of a large ‘.Rnw’-style knitr document.
Usage
knitInRStudio(SweaveFiles, force = FALSE, verbose = FALSE)
Arguments
SweaveFiles |
The files to process. If missing, the value is set
from a |
force |
If |
verbose |
Add some debugging information to the output. |
Details
This does nothing if not run from within RStudio. If run there, it starts a second R process to do the knitting. It's assumed that this call will exist in a code chunk in another knitr document.
Set childOutput = TRUE
in the options to the code
chunk containing this if you wish to see the output of the
child knitr runs in the same log as the main one.
Value
The concatenated output from the child knitting, and possibly some verbose output.
Author(s)
Duncan Murdoch
See Also
knitAll
, which does a similar thing outside
of RStudio.