One of the things I love about RMarkdown / ioslides is how easy it is to dynamically generate content. Is it possible to take this to the next level and dynamically generate slides?
For example, let's say we wanted to create a deck using the mtcars dataset. Would it be possible to create a deck that generated--dynamically--slides plotting horsepower (hp) and weight (wt), with a slide for each number of cylinders? Let's assume that we want to allow for any count of cylinders and dynamically create a slide for each possible number.
Obviously, this is a simplified example, but for creating appendices on RMarkdown documents, this would be extremely helpful. Should I create an external script? What other methods could I use?