我无法再使用 Rmarkdown 进行编译。每次我尝试在 Markdown 上编织 PDF 时,它都会显示:
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Rapport-de-stage.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output Rapport-de-stage.tex --self-contained --table-of-contents --toc-depth 4 --highlight-style tango --pdf-engine pdflatex --variable graphics --lua-filter "C:/Users/famic/OneDrive/Documents/R/win-library/4.0/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter "C:/Users/famic/OneDrive/Documents/R/win-library/4.0/rmarkdown/rmd/lua/latex-div.lua" --include-in-header "C:\Users\famic\AppData\Local\Temp\RtmpCmECzQ\rmarkdown-str176c2d407187.html" --variable "geometry:margin=1in"
tlmgr.pl: package repository http://ctan.tetaneutral.net/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr.pl install: package already present: pdftexcmds
! LaTeX Error: File `pdftexcmds.sty' not found.
! Emergency stop.
<read *>
Error : LaTeX failed to compile Rapport-de-stage.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See Rapport-de-stage.log for more info.
我尝试卸载 R 和 RStudio,但没有效果。