.onLoad <- function(libname, pkgname) {
.jpackage(pkgname, lib.loc = libname)
#TODO: use get and set options
if (Sys.getenv("AWSACCESSKEY") != "" && Sys.getenv("AWSSECRETKEY") != ""){
awsCreds <- new(com.amazonaws.auth.BasicAWSCredentials, Sys.getenv("AWSACCESSKEY"), Sys.getenv("AWSSECRETKEY"))
options(awsCreds = awsCreds)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.