setClass("Widget", contains = "VIRTUAL")
## create *Widget classes
setGeneric("Widget", function(obj, ...) standardGeneric("Widget"))
## call obj$widget()
setGeneric("widget", function(obj, ...) standardGeneric("widget"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.