title: How do I generate reports in R without texi2dvi or TeX installed?
body: <p>I've been struggling for a week now trying to figure out how to generate reports in R using either Sweave or Brew. I should say right at the beginning that I have never used Tex before but I understand the logic of it.</p>
  
  <p>I have read <a href="http://learnr.wordpress.com/2009/09/09/brew-creating-repetitive-reports/" rel="nofollow noreferrer">this</a> document several times. However, I cannot even get a simple example to parse. Brew successfully converts a simple markup file (just a title and some text) to a .tex file (no error). But it never ever converts tex to a pdf.</p>
  
  <pre><code>&gt; library(tools)
  &gt; library(brew)
  &gt; brew("population.brew", "population.tex")
  &gt; texi2dvi("population.tex", pdf = TRUE)
  </code></pre>
  
  <p>The last step always fails with:</p>
  
  <pre><code>  Error in texi2dvi("population.tex", pdf = TRUE) : 
    Running 'texi2dvi' on 'population.tex' failed.
  </code></pre>
  
  <p>What am I doing wrong? </p>
  
  <p>The report I am trying to build is fairly simple. I have 157 different analysis to summarize. Each one has 4 plots, 1 table and a summary. I just want </p>
  
  <pre><code>output plot 1,2,3,4
  output table
  \pagebreak
  ...
  </code></pre>
  
  <p>that's it. Can anyone help me get further? I use osx, don't have Tex installed.</p>
  
  <p>thanks</p>