title: object pdflatex not found on Windows 7
body: <p>I work with RStudio (version 3.1.2). When I try to Knit PDF in my R Markdown script, I receive the following output:</p>
  
  <blockquote>
    <p>Error in eval(expr,envir,enclos): object 'pdflatex' not found</p>
  </blockquote>
  
  <p>I have installed MikTex basic and have searched solutions on the web. There is one in stackoverflow for Mac users, I work with Windows 7.  It seems the problem is not having a path to the Tex installation. I found this brief guide to solve it on Windows: <a href="http://www.r-bloggers.com/building-r-packages-missing-path-to-pdflatex/" rel="nofollow">enter link description here</a> </p>
  
  <p>So, I did what it says: <code>Sys.which("pdflatex")</code> and received:</p>
  
  <blockquote>
    <p>pdflatex </p>
  </blockquote>
  
  <pre><code>  ""
  </code></pre>
  
  <p>Ten I typed: <code>Sys.getenv("PATH")</code>, obtaining: </p>
  
  <blockquote>
    <p><a href="http://www.r-bloggers.com/building-r-packages-missing-path-to-pdflatex/" rel="nofollow">1</a> "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"</p>
  </blockquote>
  
  <p>Finally, I entered: <code>Sys.setenv(PATH=paste(Sys.getenv("PATH"),"/usr/texbin",sep=":"))</code>, but when I try to knit PDF again it shows me the same error message. Thanks for all your time, I would appreciate any help.</p>