("C:\Program Files\MiKTeX 2.9\tex/latex/graphics-def\f"įile: f 8 v1.0l Graphics/color driver for was learning how to transition some of my work in codechunks from rmarkdown to sweave when the error started, so I'm just expecting to get a regular PDF saying "hello world" when the issue is fixed. Package graphics Info: Driver file: f on input line 99. ("C:\Program Files\MiKTeX 2.9\tex/latex/graphics-cfg\graphics.cfg"įile: graphics.cfg 4 v1.11 sample graphics configuration ("C:\Program Files\MiKTeX 2.9\tex/latex/graphics\trig.sty" Package: graphics 5 v1.2c Standard LaTeX Graphics (DPC,SPQR) Package: keyval 8 v1.15 key=value parser Files\MiKTeX 2.9\tex/latex/graphics\graphics.sty" ("C:\Program Files\MiKTeX 2.9\tex/latex/graphics\keyval.sty" Package: graphicx 1 v1.1a Enhanced LaTeX Graphics (DPC,SPQR) ("C:\Program Files\MiKTeX 2.9\tex/latex/graphics\graphicx.sty" Package: ifthen 9 v1.1c Standard LaTeX ifthen package (DPC) ("C:\Program Files\MiKTeX 2.9\tex/latex/base\ifthen.sty" ("C:\Program Files\MiKTeX 2.9\tex/latex/base\size10.clo"įile: size10.clo 3 v1.4i Standard LaTeX file (size Sweave ("C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls"ĭocument Class: article 3 v1.4i Standard LaTeX document class
Running pdflatex.exe on Įrror running C:/PROGRA~1/MIKTEX~1.9/miktex/bin/圆4/pdflatex.exe (exit code 1)Īnd here's the log file (note that it always references miktex 2.9, not 1.9): This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 64-bit) (preloaded format=pdflatex 2019.4.18) 09:52 You can now run (pdf)latex on 'trash.tex' Here's the output in the Compile PDF tab (note, I have Miktex version 2.9, not 1.9): Writing to file trash.texġ : echo keep.source term verbatim (trash.Rnw:6) To verify that it's not an issue with my code, I've created a simple example that runs into the same issue. Unfortunately, none of these have worked. I've tried changing the %PATH% in my environment window, I've uninstalled and reinstalled rStudio and Miktex, I've set the path to latex directly into the console in Rstudio, I've tried using knitr instead of sweave, and I've tried enabling shell escape commands. There are maybe a dozen questions that I've found online that ask similar questions, but none of the answers have helped. It can still create PDFs in rMarkdown, but it gives the exit code one when it fails to do so in sweave.
I've recently been learning how to use sweave in R to create PDF files out of Rstudio, and my machine has suddenly stopped being able to create a PDF using sweave.