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.
Package details |
|
---|---|
Maintainer | |
License | MIT + file LICENSE |
Version | 0.0.0.9000 |
URL | https://github.com/ijlyttle/codefolder |
Package repository | View on GitHub |
Installation |
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.