Neither the distill package nor the bookdown package support code-folding natively. This is an attempt to make this a little easier in the meantime. It is based on this Stack Overflow answer: <https://stackoverflow.com/a/45501553> by Sébastien Rochette.
|License||MIT + file LICENSE|
|Package repository||View on GitHub|
Install the latest version of this package by entering the following in R:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.