getFunctionDefs =
function(doc, nodes = getNodeSet(doc, "//r:function[@r:id]"))
{
if(is.character(doc))
doc = xmlParse(doc)
ids = sapply(nodes, identifyFunction)
tapply(nodes, ids, function(nodes) xmlValue(nodes[[length(nodes)]]))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.