sauceR is a small package providing additional functionality to the source() function in {base}. Specifically, a source file can be internally marked-up into modules, and the the modules can be individually executed.
# This package is not available on CRAN
# Install the development version from GitHub
# install.packages("devtools")
devtools::install_github("dreidpath/sauceR")
library(sauceR)
will load the package.
My insight into how this package might be written came from Matthew Plourde's answer to a question on stackoverflow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.