Is it possible to get all of the code in a appendix. Say I have two chunks in a document and then some text.
```{r, echo=TRUE} x <- 4+5 x ``` Above is X out
You could use a reference to your initial chunks, but then change the options:
main text ```{r blah, echo = FALSE} summary(cars) ``` appendix ```{r blah2, ref.label='blah', eval = FALSE} ```
Which will give: