If you want to include R code, but not run it, I recommend still using a chunk and setting the option to not evaluate it, e.g.

    ```{r, eval = FALSE}
    # code that won't run when knit
    ```
This way the code will still have syntax highlighting.