How to disable an entire code chunk in knitr?

knitr, r

Solution

I am answering it. But feel free to close if it is a duplicate indeed

{r eval = FALSE, echo = FALSE} <your code>

`

Problem

Is there a way to completely disable a code chunk in knitr so that it's neither evaluated nor output?

Original source

Related problems