My Rmarkdown scripts are getting quite large lately. Especially the code inside the R-chunk which makes over-viewing the whole script more and more tricky. Luckily in RStudio there's the functionality to close resp. minimize the code chunk to one line! However when chunks are becoming more, it takes time to close them all by hand.
Question: Is there a feature to close them all at once? Say when starting to work on the script and then reopen single chunks when needed.
PS: Wasn't sure to post this as a feature request on github or here.
knitr::read_chunk
to find them. You then just give the chunk name. This also makes the chunks usable by several different documents/presentations – Cosmic