Skip to main content

knitr Child Document Kept As knitr Wrote It

engine
A chunk includes another document with child=, so its output is kept as knitr produced it.

Q-18-14 — knitr Child Document Kept As knitr Wrote It

A chunk includes another document with child=, so its output is kept as knitr produced it.

What this means

A chunk such as

```{r, child = "other.Rmd"}
```

asks knitr to run another document and splice the result into this one. knitr returns the whole child document as one block of finished markdown. Quarto records that block for the chunk and keeps it as knitr wrote it; the child document’s own chunks are not presented from recorded pieces.

The output is the same as knitr’s. This is a note, not a problem: nothing needs fixing.