问题
In R, when compiling a markdown document using rmarkdown::render(...)
, how can I retain the intermediate .tex
file that is produced from knitting.
I have tried setting the clean=FALSE
argument, but this retains the figures, not the final tex file or auxiliary files, which I need to inspect for debugging purposes.
回答1:
You can specify it in your YML header with:
output:
pdf_document:
keep_tex: true
---
More options on the rmarkdown site.
来源:https://stackoverflow.com/questions/37701995/rmarkdown-retain-tex-file