title: Sweave from the command line using concordance=TRUE
body: <p>I have document that uses a LaTeX Beamer template and passes this code around the beginning of the actual document</p>
  
  <pre><code>\usepackage{Sweave}
  \begin{document}
  \SweaveOpts{concordance=TRUE}
  </code></pre>
  
  <p>The document compiles just fine using RStudio (0.97.248) with R-2.15.2. After I finish composition, to insure reproducibility, I like to generate the entire analysis from a cmd file (and use ghostscript to compress the PDF).
  The relevant parts are</p>
  
  <pre><code>R CMD Sweave MyDoc
  pdflatex MyDoc
  bibtex MyDoc
  pdflatex MyDoc
  pdflatex MyDoc
  </code></pre>
  
  <p>This fails with the error message</p>
  
  <pre><code> ! LaTeX Error: File `MyDoc-concordance.tex' not found.
  </code></pre>
  
  <p>Which suggests that Sweave is not generating the concordance from the command line. A can't find a command line switch and my Google searches have not been helpful... I would greatly appreciate any pointers...</p>