在Rstudio服务器中编译Rmd时,.tex文件在哪里保留

ver*_*uth 5 knitr rstudio-server

这听起来像是一个愚蠢的问题,但是当我使用RStudio服务器从Rmd文件编译pdf文档时,我想知道.tex文件保存在哪里。我添加了keep_tex选项,因此Rmd的标头如下所示:

---
output:
  pdf_document:
    keep_tex: yes
---
Run Code Online (Sandbox Code Playgroud)

然后当我编译时,输出看起来像这样

  |......................                                           |  33%
  ordinary text without R code

  |...........................................                      |  67%
label: plot


processing file: test.Rmd
cropping /tmp/Rtmpb1x3Q0/preview-3bfe24922427.dir/test_files/figure-latex/plot-1.pdf
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `/tmp/Rtmpb1x3Q0/preview-3bfe24922427.dir/test_files/figure-latex/plot-1.pdf'.
  |.................................................................| 100%
  ordinary text without R code


/usr/lib/rstudio-server/bin/pandoc/pandoc test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output /tmp/Rtmpb1x3Q0/preview-3bfe24922427.dir/test.tex --template /home/myusername/R/x86_64-pc-linux-gnu-library/3.1/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine pdflatex --variable 'geometry:margin=1in' 
output file: test.knit.md

/usr/lib/rstudio-server/bin/pandoc/pandoc test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output /tmp/Rtmpb1x3Q0/preview-3bfe24922427.dir/test.pdf --template /home/myusername/R/x86_64-pc-linux-gnu-library/3.1/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine pdflatex --variable 'geometry:margin=1in' 

Output created: /tmp/Rtmpb1x3Q0/preview-3bfe24922427.dir/test.pdf
Run Code Online (Sandbox Code Playgroud)

我想找到中间的.tex文件(或test.knit.md),并进行一些编辑。除非在哪里找不到。不在工作目录或/ home / myusername /或/或/ tmp / Rtmpb1x3Q0 /中。如果有人给出答案,我将非常感激。

ver*_*uth 3

实际上,控制台中的第一行

/usr/lib/rstudio-server/bin/pandoc/pandoc test.utf8.md --to latex --from       markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output /tmp/Rtmpb1x3Q0/preview-3bfe24922427.dir/test.tex --template /home/myusername/R/x86_64-pc-linux-gnu-library/3.1/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine pdflatex --variable 'geometry:margin=1in' 
Run Code Online (Sandbox Code Playgroud)

告诉我们输出.tex文件位于 /tmp/Rtmpb1x3Q0/preview-3bfe24922427.dir/test.tex 不知何故我上次没有找到该文件,但在最近的实例中,该.tex文件实际上在那里,所以这就回答了问题。