2
這可能聽起來像一個愚蠢的問題,但我想知道當我從Rmd文件編譯pdf文檔時,保存的.tex文件在哪裏,使用RStudio服務器。 我加了keep_tex選項,所以RMD的頭看起來是這樣的:在Rstudio服務器中編譯Rmd時,.tex文件保存在哪裏
---
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 /中。 如果有人有答案,我會很感激。
這並沒有完全回答這個問題,但我找到了一個解決方法,至少可以得到由knitr生成的pdf文件。 以前我在Rstudio PDF閱讀器中預覽了pdf。通過在全局選項中更改爲系統查看器,我現在可以保存生成的pdf文件。 – vermouth