I am struggeling to make rendering pdf's from within RStudio possible. I keep on getting 43's errors. There are several topics on stackoverflow regarding this type of error. None of them have helped me. I am pretty sure that RStudio in my case doesn't know where to look for the tex files in MikTeX.
I used the solution mentioned here.
It gives this piece of code as a solution:
Sys.setenv(PATH = paste(Sys.getenv("PATH"), "C:\\RMathew\\PortableApps\\MikTeX\\miktex\\bin", sep=.Platform$path.sep))
In my particular case I changed the code to (because that's where it seems to be located on my machine):
Sys.setenv(PATH = paste(Sys.getenv("PATH"), "C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64", sep=.Platform$path.sep))
With no success. I got the same errors as the errors I get without running that code before rendering the pdf_document.
Does anyone have an idea about what I am doing wrong en how to solve this issue?