title: Code folding in bookdown
body: <p>The Code folding option in RMarkdown for html documents is awesome. That option makes the programmatic methodology transparent for those who are interested, without forcing the audience to scroll through miles of code. The tight placement of code with prose and interactive graphical output makes the whole project more accessible to a wider audience, and furthermore it reduces the need for additional documentation. </p>
  
  <p>For a larger project, I'm using bookdown, and it works great. The only problem is that there is no code-folding option. 
  Code folding is not currently enabled in bookdown. (see <a href="https://stackoverflow.com/questions/39947867/enable-code-folding-in-bookdown">Enable code folding in bookdown</a> )</p>
  
  <p>I know I don't need an option to make it happen. I just need to paste the right code in the right place or places. But what code and where?</p>
  
  <p>A viable alternative would be to put the code chunk below the chunk's outputs in the page. Or, finally, to put them as an appendix. I could do that with html but not reproducible like rbookdown.</p>