1 follower Follow

windows: "Unabled to find specified LaTeX program 'pdfLaTeX' on the system path"

I recently installed rstudio on a new computer, but I can't get a sweave document (that used to work on my old one) to work.  I installed MikTex for windows, and I see MikTex in my system environment path:

> Sys.getenv("PATH")
[1] "C:\\Users\\xxx\\AppData\\Local\\Programs\\MiKTeX 2.9\\miktex\\bin\\x64\""

but Rstudio can't seem to find pdflatex:

> Sys.which('pdflatex')

I'm not sure exactly how to proceed.

I've checked out some of the posts in the rstudio support archive, and some of them allude to this problem, but I wasn't able to figure it out.  Apologies if my post is redundant to an already solved issue.  Thanks!

Matthew McDonald