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:
You're right, thanks for pointing out. I've edited. Apparently same problem is happening here. I'm trying to find a way to include the "```{r ... }" chunk options in the output of my RMD document. I want folks to be able to see exactly how I'm getting the output.