I would like to show ALL of the code I use to generate a figure in my rendered document using RMarkdown. For example, what I would like to see in my rendered document (either pdf or html) is this:
"```{r coolplot, fig.cap="Cool plot",echo=T}
"knitr::include_graphics("cool_plot.pdf")
"```
But when I run this code, all I see is the following code chunk:
knitr::include_graphics("cool_plot.pdf")
Is there an easy way to accomplish this?