#' @export
print.XPtr <- function(x, ...) {
attrs <- attributes(x)
cat("'", attrs[["type"]], " ", attrs[["fname"]],
"(", paste(attrs[["args"]], collapse=", "), ")' ", sep="")
attributes(x) <- NULL
print(x)
attributes(x) <- attrs
invisible(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.