include images programmatically in .md document from within R chunk using knitr
问题 I want to programmatically include a lot of images in my .Rmd markdown document. Something like ```{r echo=FALSE} cat("") ``` will not work, as the resulting .md output is ``` ##  ``` I would need to get rid of the code tags ``` and the leading ## . Is there an option to directly inject markdown code from within the R chunk? BTY: The same issue applies to HTML as well. Here also a HTML code injection from within an R chunk would be really helpful. 回答1: Using