R Tinytex can';t安装缺失的LaTeX软件包,因为它已安装

R Tinytex can';t安装缺失的LaTeX软件包,因为它已安装,r,xelatex,tinytex,R,Xelatex,Tinytex,我的同事在将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 Tuininsec

我的同事在将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```
“C:/R/RStudio/bin/pandoc/pandoc”+RTS-K512m-RTS Tuininsecten.utf8.md——到latex——从标记+自动链接\u裸\u URI+tex\u数学\u单反斜杠——输出Tuininsecten.tex——自包含——高亮显示风格探戈——latex引擎pdflatex——可变图形——可变“几何体:边距=1in”——包含在标题中“C:\Users\DIRK_M~1\AppData\Local\Temp\RtmpQJewV9\rmarkdown-str714276548a6.html”
tlmgr.pl:包存储库http://mirror.koddos.net/CTAN/systems/texlive/tlnet (核实)
tlmgr.pl安装:包已存在:pdftexcmds
!LaTeX错误:找不到文件'pdftexcmds.sty'。
紧急停车。
错误:LaTeX未能编译Tuininsecten.tex。请参阅https://yihui.org/tinytex/r/#debugging 有关调试提示,请参阅Tuininsecten.log了解更多信息。
此外:有11个警告(使用warnings()查看它们)
停止执行```

重新安装TinyTex本身(而不是R软件包)解决了问题

tinytex::reinstall_tinytex()

感谢您的建议。

您是否尝试过卸下并重新安装软件包?建议不错。我们将尝试一下。