toString.XMLNode <-
function(x, ...)
{
# .tempXMLOutput = "" # Put here for codetools to detect the variable locally.
con <- textConnection(".tempXMLOutput", "w", local = TRUE)
on.exit(close(con))
sink(con)
print(x)
sink()
paste(textConnectionValue(con), collapse="\n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.