## FUNCTION THAT WILL CHECK ALL CALLS FOR FAILURES AND CONVERT JSON RESPONSES
#####
.getXmlstatsJSON <- function(url, .opts, httpheader, ...){
tryGetURL <- getURL(url, .opts=.opts, .encoding='UTF-8',
httpheader=httpheader, ...)
tryGetURL <- fromJSON(tryGetURL)
return(tryGetURL)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.