If you don't want any code chunks to run you can add eval = FALSE in your setup chunk with knitr::opts_chunk$set().
```{r setup, include = FALSE}
knitr::opts_chunk$set(eval = FALSE)
```
If you want only some chunks to run you can add eval = FALSE to only the chunk headers of those you don't want to run.
I so often end up needing to remind myself of chunk options or how an option works. Luckily there is a great resource for this: