I updated all of my packages and now have encountered new errors when attempting to generate pdf documents from Rmarkdown (called from a Shiny app). I installed tinytex in an effort to correct these issues and have ceased to be able to produce pdf reports at all. (Rmarkdown html output still works fine.) Can anyone tell from the following error message what my problem might be and how to correct it? Thank you!
Thanks so much for your suggestion of going back to Rmarkdown 1.8. I should've followed your advice sooner. In wrestling with issues and going back and forth between tinytex and MiKTex, R is no longer able to find pdflatex on my computer. I'm sure it has to do with deleting and re-installing MiKTeX, but I don't know how to correct it. Sys.which("pdflatex") returns "" And any efforts to generate pdfs result in pandoc.exe: pdflatex not found. pdflatex is needed for pdf output.
I've made sure that MiKTeX is in the path under system environment.
Any ideas?
Thank you!
Hi @JudyL. I was getting the same error a number of months ago on a MacBook, which I narrowed down to a Pandoc issue (I had a newer, separate version of Pandoc installed than the one bundled with RStudio which clearly created issues).
This SO answer confirms your suspicion that it is a path issue. Maybe there is something in this Tex Exchange Answer that might help?
I've had issues installing packages behind a firewall as well. The only thing I've figured out is to have our IT give me the ability to shut down the firewall on my comp temporarily while I install packages. Short of that, I don't know of a workaround.