title: Writing big documents with Sweave. Is it possible to do as with LaTeX?
body: <p>I am just discovering <code>Sweave</code> and <code>R</code>. I have seen some examples of <code>Sweave</code> documents and have also started to write one or two on my own. I am impressed by the ability of doing computations in <code>R</code> and outputting results directly in a <code>LaTeX</code> document. </p>
  
  <p>Now I am thinking of bigger documents (as we usually have with <code>LaTeX</code>) that consist of several pages and several parts. With <code>LaTeX</code> (I use WinEdt), I set a main document (e.g. <code>main.tex</code>) and then have other subsidiary documents like <code>introduction.tex</code>, <code>discussion.tex</code> etc. </p>
  
  <p>My question is: Can we do this with <code>Sweave</code> as well? Now I am working with single <code>Sweave</code> document (.Rnw) alone. Can we have multiple <code>Sweave</code> documents (with one main and the secondary ones) like we normally do with <code>LaTeX</code>? </p>
  
  <p>A workaround would be to have separate <code>Sweave</code> files and then sweave them to produce the <code>R</code> <code>LaTeX</code> chunks which can be copied to a <code>LaTeX</code> document but then the whole idea seems quite inefficient and time consuming. </p>
  
  <p>Please do let know what suggestions and solutions that you have.</p>
  
  <p>Thanks a lot...</p>