LoadCredentials <- function(site=NULL, file=NULL) {
if(is.null(site) && is.null(file))
stop("You need to provide some information to identify the credentials you'd like to load.")
if(is.null(file)) {
file = file=paste(".oauthparams_", site, ".Rdata", sep="")
}
load(file, envir = .GlobalEnv)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.