Reputation: 18487
My colleague gets the error below when rendering an Rmd to pdf. tinytex can't find an sty file, tries to install it and fails because it is already installed?
I'm puzzled on how to solve this. Suggestions are welcome.
"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```
Upvotes: 3
Views: 1832
Reputation: 18487
Re-installing TinyTex itself (not the R package) solved the problem.
tinytex::reinstall_tinytex()
Thanks to Steffen Moritz for the suggestion.
Upvotes: 4