Rmarkdown Retain .tex file
Asked Answered
L

1

22

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.

Lieu answered 8/6, 2016 at 12:5 Comment(0)
D
21

You can specify it in your YML header with:

output:
  pdf_document:
    keep_tex: true
---

More options on the rmarkdown site.

Dalston answered 8/6, 2016 at 12:19 Comment(2)
This doesn't seem to work with bookdown?Reiter
not so familiar myself with bookdownDalston

© 2022 - 2024 — McMap. All rights reserved.