loadModule <-
function(x) {
attrs <- xmlAttrs(x)
if ("ref" %in% names(attrs)) {
module <- readModule(attrs["ref"])
contents <- xmlChildren(xmlRoot(module))
addChildren(x, kids=contents)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.