acornsResponseHandler <-
function(res) {
code <- status_code(res);
bdy <- content(res, 'parsed');
if(code>300) {
return(acornsErrorHandler(bdy, res));
##print(sprintf('response code: %s', code));
##print(headers(res))
##print(bdy);
} else {
return(bdy);
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.