#' @import methods
#' @export
setMethod('typeof', signature(x="myClass"),
function(x) {
print('typeof was called')
switch(class(x),
"A" = "myClassA",
"B" = "myClassB",
stop("unrecognized class"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.