Learn R Programming

patchDVI (version 1.11.3)

knitInRStudio: 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)

Value

The concatenated output from the child knitting, and possibly some verbose output.

Arguments

SweaveFiles

The files to process. If missing, the value is set from a .SweaveFiles variable in the global environment.

force

If TRUE, all files are knitted; otherwise, only those that are newer than the corresponding .tex file.

verbose

Add some debugging information to the output.

Author

Duncan Murdoch

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.

See Also

knitAll, which does a similar thing outside of RStudio.