Pdflatex object not found on Windows 7

I work with RStudio (version 3.1.2). When I try to knit a PDF in an R Markdown script, I get the following output:

Error in eval (expr, envir, enc): object 'pdflatex' not found

I installed the base MikTex and searched for solutions on the Internet. There is one in stackoverflow for Mac users, I work with Windows 7. It seems that the problem is not related to the Tex installation. I found this quick guide to solve it on Windows: enter the link here

So, I did what he said: Sys.which("pdflatex")and received:

pdflatex

  ""

Ten I typed:, Sys.getenv("PATH")having received:

1 "C: \ Program Files \ R \ R-3.1.2 \ bin \ x64; C: \ WINDOWS \ system32; C: \ WINDOWS; C: \ WINDOWS \ System32 \ Wbem; C: \ WINDOWS \ System32 \ WindowsPowerShell \ v1.0 \; C: \ Program Files (x86) \ Intel \ OpenCL SDK \ 2.0 \ bin \ x86; C: \ Program Files (x86) \ Intel \ OpenCL SDK \ 2.0 \ bin \ x64; C: \ Program Files \ WIDCOMM \ Bluetooth Software \; C: \ Program Files \ WIDCOMM \ Bluetooth Software \ syswow64;: / usr / texbin: / usr / texbin "

Finally, I entered: Sys.setenv(PATH=paste(Sys.getenv("PATH"),"/usr/texbin",sep=":"))but when I try to knit the PDF again, it shows me the same error message. Thanks for all your time, I would appreciate any help.

+4
source share
3 answers

64- Windows, Sys.which("pdflatex"):

 C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe

sessionInfo(). - :

R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)

: C:\Program Files\MiKTeX 2.9\miktex\bin ( 32- ) C:\Program Files\MiKTeX 2.9\miktex\bin\x64 ( 64- ).

+5

PATH. Windows, UNIX (.. : /, \). '/usr/texbin/', , .

+1

. : C:\Program Files\MiKTeX 2.9\miktex\bin\x64, , x64. cmd , : pdflatex.exe -version. RStudio PDF .

+1

All Articles