Rmarkdown Retain .tex file

被刻印的时光 ゝ 提交于 2020-03-14 09:41:40

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!