title: Diagnosing R Package build Error: pdfLatex Not Available
body: <p>I am trying to build a package in <code>R</code>. I made the skeleton, and ran the command <code>R CMD check package1</code>. I got an an error described <a href="https://stackoverflow.com/questions/10819959/diagnosing-r-package-build-warning-latex-errors-when-creating-pdf-version">here</a>. 
  I followed the solution steps, and the results are:</p>
  
  <ol>
  <li><p>package <code>devtools</code> not available for <code>R 2.15.1</code></p></li>
  <li><p>punched in <code>R CMD Rd2pdf package1</code>.</p></li>
  </ol>
  
  <blockquote>
  <pre><code>Hmm.. Looks like a package
  Converting Rd files to LaTeX
  Creating pdf output from LaTeX
  Error in texi2dvi(file=file, pdf=true, clean=clean, quiet=quiet, : pdflatex not available
  Error in running tools::texi2pdf
  </code></pre>
  </blockquote>
  
  <ol start="3">
  <li>I looked up <a href="https://tex.stackexchange.com/questions/60702/setting-up-miktex-and-texworks">this</a> amongst other things, installed the complete tex live &amp; MiKTeX. Same error message showed up.</li>
  <li>I navigated to the directory where pdflatex is located and tried running the command from there. Didn't help.</li>
  </ol>
  
  <p>Is there something I'm missing here, or is there a workaround? Or maybe, Is there a way to suppress pdf generation during package creation?</p>
  
  <p>UPDATE: This error was not thrown when I tried it in LINUX (CentOS).</p>