If this function is executed within RStudio, it will
knit all child
from the main file
of a large .Rnw
-style knitr document.
knitInRStudio(SweaveFiles, force = FALSE, verbose = FALSE)
The concatenated output from the child knitting, and possibly some verbose output.
The files to process. If missing, the value is set
from a .SweaveFiles
variable in the global environment.
If TRUE
, all files are knitted; otherwise, only those
that are newer than the corresponding .tex
file.
Add some debugging information to the output.
Duncan Murdoch
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.
knitAll
, which does a similar thing outside
of RStudio.