我是 RStudio 和 RMarkdown 的新手。当我尝试在 Rstudio 中编织我的第一个 pdf 文档时,我收到以下消息:
processing file: Preview-4cef6f7763df.Rmd
|............. | 20%
ordinary text without R code
|.......................... | 40%
label: unnamed-chunk-1
|....................................... | 60%
ordinary text without R code
|.................................................... | 80%
label: unnamed-chunk-2 (with options)
List of 1
$ echo: logi FALSE
cropping ./Preview-4cef6f7763df_files/figure-latex/unnamed-chunk-2-1.pdf
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `./Preview-4cef6f7763df_files/figure-latex/unnamed-chunk-2-1.pdf'.
|.................................................................| 100%
ordinary text without R code
/usr/lib/rstudio/bin/pandoc/pandoc Preview-4cef6f7763df.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output Preview-4cef6f7763df.pdf --template /home/klemen/R/i686-pc-linux-gnu-library/3.0/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine pdflatex --variable 'geometry:margin=1in'
output file: Preview-4cef6f7763df.knit.md
! Incomplete \iffalse; all text was ignored after line 110.
<inserted text>
\fi
<*> /tmp/tex2pdf.2746/input.tex
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on /tmp/tex2pdf.2746/input.log.
pandoc: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43
Execution halted
我真的不知道该如何解决这个问题。有人能帮忙吗?谢谢。
答案1
就我而言,删除日期中的点(或用 将其转义\\.
)解决了错误。