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.