A simple example of a package using S4 classes and roxygen2 for documentation.
setwd("/path/to/lreg")
library(devtools)
check()
Should you just wish to install this package, you can use devtools:
if (!require("devtools")) install.packages("devtools")
devtools::install_github("jefferis/lreg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.