It is easy to create verbatim environments within regular R markdown documents. Example:
````{verbatim}
```{r}
```
````
In the knitted document, only the material within the quadruple backticks is displayed. We see:
```{r}
```
However, this same trick fails when used within a learnr tutorial, even though it is also an R markdown document. Nothing is displayed. I suspect that this has something to do with the use of Shiny to display learnr tutorials.
How can I use a verbatim environment within learnr tutorials, or something similar?