I have a master R markdown document (Rmd) within which I would like to knit
several separate Rnw documents (NO child documents) in one of the chunks. However, when I call knit
on the Rnw document, the contained R code chunks do not seem to be processed, resulting in an error when trying to run texi2pdf
on them.
Illustration of the situation:
Inside master.Rmd:
```{r my_chunk, echo=FALSE, message=FALSE, results='asis'}
... some code ...
knit("sub.**Rnw**", output = ..., quiet = TRUE)
tools::texi2pdf(tex_file)
... some code ...
```
Is there some additional configuration required to make this scenario work?