Take the 2-minute tour ×  I've been using LaTeX and R for a few
years now, but am only now bringing them together via Sweave. As
I put the document together, I run my R code in its own session
to verify that it works properly, then add it to the Sweave
file. Then, I Sweave the file in R. This goes fine, since all
the R code has checked out. When I compile the TeX file, though,
there are almost invariably errors that I have made.  Finding an
error in the TeX file, tracing it to the Sweave file, and re-
Sweaving and TeXing isn't that difficult. It does become a pain
when there are multiple errors, meaning multiple reruns of
Sweave and pdftex. It would be simpler if I could fix all the
errors in the TeX file, which can be rerun alone simply, and
have them transfer into the Sweave file, rendering it ready for
a final Sweave and TeX compile.  Any tips on how you handle this
workflow?  One tip is to not make any errors, but, as an
economist, I believe that the optimal number of errors is
probably greater than 0.  Th