title: R Generate slides in slidify presentation in a loop
body: <p>I want to create N slides to report descriptive statistics for N subsets of (big) data using <code>slidify</code> package . In an earlier discussion <a href="https://stackoverflow.com/questions/14959312/create-parametric-r-markdown-documentation">Create parametric R markdown documentation?</a> the combination of <code>brew</code> and <code>knitr</code> were advised to achieve this.</p>
  
  <p>I'm wondering whether <code>slidify</code> has its own workaround for such a task? I guess iterating through data to populate slides is even more logical than for plain text...</p>
  
  <p>A minimal example (from the question above, I need slides instead of paragraphs)</p>
  
  <pre><code>```{r loopResults, echo=FALSE, results='asis'}
  results = list(result1 = data.frame(x=rnorm(3), y=rnorm(3)), result2=data.frame(x=rnorm(3), y=rnorm(3)))
  
  for(res in names(results)) {
    cat(paste("&lt;h3&gt;Results for: ", res, "&lt;/h3&gt;&gt;"))
  
    plot(results[[res]]$x, results[[res]]$y)
  }
  </code></pre>