The exrcise package selectively removes the contents of code chunks from Rmarkdown files to produce new notebooks suitable for live coding instruction or exercises, while preserving the original file as a reference or answer key.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.