I'm in the midst of writing a textbook. I frequently use custom code blocks to explain technical concepts. These are quite nice, but sometimes I want to embed an r chunk within a custom code block. As an example, I would like to do the following:
```{block, type="rmdnote"}
This is a very tricky concept to master. Let's look at a plot and output generated from R:
```{r, echo=FALSE}
plot(1:10, 1:10)
summary(1:10)
```
```
This will not work. Is there any way to embed an r chunk within a custom chunk?