Notebook with code folding hide by default

Using the current template included in RStudio with File/New File/R Notebook
the html notebook resulting from Preview has all code chunks unfolded by default.
Is it possible to include an option at the begining of the Rmd document so that
the html notebook has all the code chunks folded by default?
Note I'm happy with the current buttons, I just want to have Hide All Code by default.
Thanks

Just add code_folding: hide to your YAML header.

---
title: "Example"
output:
  html_notebook:
    code_folding: hide
---
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.