Wrong Miktex installation folder after MikTex update

oyvindbs's Avatar

oyvindbs

28 May, 2012 11:02 AM

Hi
I've updated my Miktex installation (win7) and suddenly I can't compile pdfs. When I try I get this error
Running pdflatex.exe on 123.tex...failed
Error running C:/PROGRA~1/MIKTEX~1.9/miktex/bin/pdflatex.exe (exit code 1)

The problem is that my MikTex install is version 2.9 and not 1.9. I tried reinstalling both Rstudio and Miktex, and when MiktTex was uninstalled Rstudio couldn't find latex.

When I run the Sys.which('pdflatex'):
"C:\PROGRA~1\MIKTEX~1.9\miktex\bin\pdflatex.exe"

Is there any way to manually set the latex-folder?

  1. 2 Posted by oyvindbs on 28 May, 2012 11:32 AM

    oyvindbs's Avatar

    I'm sorry. The mistake was mine. The file I tried to compile was named .RNW and not .Rnw. As the tex-file was named *.RNW.tex Latex wasn't able to find it. After renaming it everything worked smoothly.

    Still I find it strange that Rstudio told me the latex-folder was miktex 1.9.

  2. oyvindbs closed this discussion on 28 May, 2012 11:32 AM.

Comments are currently closed for this discussion. You can start a new one.