Search code examples
rrstudioquarto

Quarto `Knit` failing with pdf


I try to knit a pdf document using quarto and receive the following error:

compilation failed- package installation error I can't find file `pgfkeyslibraryfiltered.code.tex'. l.1230 \input pgfkeyslibraryfiltered.code.tex

The file is located at ~library/tinytex/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex with all the other docs.

I've tried downloading Rstudio and tinytex to no avail. Any advice?

I'm working on a Mac with an M1 chip.


Solution

  • Solution: re-install tinytex. Don't just re-download the package! You have to do tinytex::install_tinytex(). Then everything works great!