setattr <- function(x, ..., attrlist=list()){
a <- c(list(...), attrlist)
n <- names(a)
for(i in 1:length(a)){
attr(x, n[i]) <- a[[i]]
}
return(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.