How to insert markdown in the middle of an knitr R code chunk?
问题 For example, I would like to insert a break between each of the two plots in the following code chunk without breaking it up: ```{r} plot(1:100, 1:100) plot(1:100, 1:100) ``` such that the result is like: ```{r} plot(1:100, 1:100) ```` <br> ```{r} plot(1:100, 1:100) ``` If results='asis' is a chunk option, it looks like you can directly print the <br> command, e.g.: ```{r} plot(1:100, 1:100) print('<br>') plot(1:100, 1:100) ``` What do I do for other types of chunks? 回答1: You can use the