R Sweave chunk options
<p>Say I have two chunks of code seen below,</p>

<pre><code>&lt;&lt;include=FALSE&gt;&gt;=
inf.col &lt;- cbind(dffits(col.lm), dfbetas(col.lm), cooks.distance(col.lm))
inf.col462 &lt;- data.frame(inf.col[462,])
rownames(inf.col462) &lt;- c("DFFITS", "DBETAS Intercept", "DBETAS Accept", "DBETAS Top10perc", "DBETAS PrivateYes", "DBETAS Outstate", "DBETAS PhD", "Cook's D")
inf.col462
inf.col484 &lt;- data.frame(inf.col[484,])
rownames(inf.col484) &lt;- c("DFFITS", "DBETAS Intercept", "DBETAS Accept", "DBETAS Top10perc", "DBETAS PrivateYes", "DBETAS Outstate", "DBETAS PhD", "Cook's D")
inf.col484
inf.col251 &lt;- data.frame(inf.col[251,])
rownames(inf.col251) &lt;- c("DFFITS", "DBETAS Intercept", "DBETAS Accept", "DBETAS Top10perc", "DBETAS PrivateYes", "DBETAS Outstate", "DBETAS PhD", "Cook's D")
inf.col251
inf.col460 &lt;- data.frame(inf.col[460,])
rownames(inf.col460) &lt;- c("DFFITS", "DBETAS Intercept", "DBETAS Accept", "DBETAS Top10perc", "DBETAS PrivateYes", "DBETAS Outstate", "DBETAS PhD", "Cook's D")
inf.col460
@
</code></pre>

<hr>

<pre><code>&lt;&lt;&gt;&gt;=
inf.col2 &lt;- cbind(inf.col462, inf.col484, inf.col251, inf.col460)
inf.col2
@
</code></pre>

<hr>

<p>And in my .pdf output I only want to see the code from the second chunk.  But the second chunk utilizes code from the first chunk.  So if I use <code>&lt;&lt;eval=FALSE&gt;&gt;=</code>  the code will not run at all and R won't know what the objects inf.col462, etc. even are.  I tried <code>&lt;&lt;include=FALSE&gt;&gt;=</code> as shown, but it still prints all of the code from chunk 1.</p>

<p>How can I not print chunk 1, but store it's info in cache to evaluate chunk 2?</p>

<p>Thank you.</p>

<p>P.S. I have required: dplyr, knitr, tidyr.</p>