title: Knitting to PDF in R
body: <p>I am new to R and am trying to knit my R Markdown files into PDF format. </p>
  
  <p>I continually get the error message:</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="noreferrer">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="noreferrer">http://tug.org/mactex/</a>
    (NOTE: Download with Safari rather than Chrome <em>strongly</em> recommended)</p>
  
  <p>Linux: Use system package manager</p>
  
  <p>I have downloaded pandoc, and I have also downloaded TexLive and have installed them both onto my computer. For the life of me I cannot figure out why R wont recognize that Ive installed them, and knit into a PDF. </p>
  
  <p>Please help!</p>