title: How to best generate multiple HTML files from RMarkdown based on one dataset?
body: <p>I have an RMarkdown report that is very useful and has grown to be several pages long with all the figures and tables in the HTML file.</p>
  
  <p>It uses the same dataset for all the figures and tables.</p>
  
  <p>What I would like to do is to keep generating this large html file and then several new subdirectories, each with their own html files and subdirectories within those, each with their own html files.</p>
  
  <p>In this case, the full report contains data on a department, then each subdirectory would contain an html output related to each group within the department, and each of those would contain a subdirectory with html output for each person in each group. This way if someone is only interested in the metrics of one group, or one person, they look at the most appropriate output.</p>
  
  <pre><code>Parent dir: The same large html file with figures and tables generated with data for entire dept.
  |
   __Subdir for each group: Output based on same data but only the group's metrics
      |
       __Subdir for each person: Output based on same data but only individual's metrics
  </code></pre>
  
  <p>What's the best way to arrange this?<br>
  1. Is there a code chunk option in RMardkown where I can say, chunk a goes in this html output file, chuck b goes in another?<br>
  2. Do I need multiple RMarkdown files, one for each html output, witch some sort of caching between them so I don't have to reprocess all the data? (this would seem silly because I need a lot of html files)<br>
  3. Should I give up RMarkdown for this task?</p>