0

我的同事在将 Rmd 渲染为 pdf 时收到以下错误。tinytex 找不到 sty 文件,尝试安装它并因为它已经安装而失败?

我很困惑如何解决这个问题。欢迎提出建议。

"C:/R/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Tuininsecten.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output Tuininsecten.tex --self-contained --highlight-style tango --latex-engine pdflatex --variable graphics --variable "geometry:margin=1in" --include-in-header "C:\Users\DIRK_M~1\AppData\Local\Temp\RtmpQJewV9\rmarkdown-str714276548a6.html"
tlmgr.pl: package repository http://mirror.koddos.net/CTAN/systems/texlive/tlnet (verified)
tlmgr.pl install: package already present: pdftexcmds
! LaTeX Error: File `pdftexcmds.sty' not found.

! Emergency stop.
<read *>

Error: LaTeX failed to compile Tuininsecten.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See Tuininsecten.log for more info.
In addition: There were 11 warnings (use warnings() to see them)
Execution halted```
4

1 回答 1

0

重新安装 TinyTex 本身(不是 R 包)解决了这个问题。

tinytex::reinstall_tinytex()

感谢Steffen Moritz的建议。

于 2020-09-21T14:38:11.423 回答