6

これはばかげた質問のように聞こえるかもしれませんが、RStudio サーバーを使用して Rmd ファイルから pdf ドキュメントをコンパイルするときに、.tex ファイルが保存されている場所を知りたいです。keep_tex オプションを追加したので、Rmd のヘッダーは次のようになります。

---
output:
  pdf_document:
    keep_tex: yes
---

次に、コンパイルすると、出力は次のようになります

  |......................                                           |  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

中間の .tex ファイル (または test.knit.md) を見つけて、少し編集したいと思います。それがどこにも見つからないことを除いて。作業ディレクトリ、または /home/myusername/、/、または /tmp/Rtmpb1x3Q0/ にありません。誰かが答えを持っていれば、本当に感謝しています。

4

2 に答える 2