How to generate LaTeX file without preamble in R markdown?
问题 I have a LaTeX document that is split to multiple .tex files. I'm using R markdown to generate figures and tables. Is it possible to generate .tex file from .Rmd without preamble, so that I will be able to just use output in my document? Currently, I need to manually copy part of the output to my .tex file 回答1: Let's suppose your child document is named child.Rmd and has the following contents. ```{r pressure, echo=FALSE, dev='pdf'} plot(pressure) ``` Run knitr::knit("child.Rmd") and you get