I've a Rmarkdown document in which I'd like to show how to write code chunks. I need to display full code chunks (including backticks and chunk options) without executing them.
- I couldn't find anything about it. Is there any documentations describing this trick?
- In the first link,
`r ''`comes before the chunk, in the second one, it comes after the chunk head. Are there actual differences between the two?
- I'd like to do the same with inline chunks but can't make it work. I've tried the same as shown in the first link (see below) but the script errors without explicit message ("execution stopped") when knitting. Any idea how to do that?
```md `r blah` ```