R markdown on OSX: pdflatex not found
<p>I got the error when trying to knitr a R markdown file to pdf on OSX:</p>

<p>pandoc: pdflatex not found. pdflatex is needed for pdf output.
Error: pandoc document conversion failed with error 41
Execution halted</p>

<p>No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform:</p>

<p>Windows: MiKTeX (Complete) - <a href="http://miktex.org/2.9/setup" rel="nofollow">http://miktex.org/2.9/setup</a>
  (NOTE: Be sure to download the Complete rather than Basic installation)</p>

<p>Mac OS X: TexLive 2013 (Full) - <a href="http://tug.org/mactex/" rel="nofollow">http://tug.org/mactex/</a>
  (NOTE: Download with Safari rather than Chrome <em>strongly</em> recommended)</p>

<p>Following the link in the error, I downloaded mactex and installed it. However, the error persists when I tried to knitr in pdf. I can render it to html and word, as two other options available, but the pdf option gets me the error</p>

<p>Any insight is appreciated.</p>