R/onLoad.R

Defines functions onLoad

.onLoad <- function(libname, pkgname) {
    # If credentials are in environment variables, use those.
    creds <- locate_credentials()
    if (!all(is.null(creds$key), is.null(creds$secret))) {
        return(invisible(NULL))
    }
    # Load default AWS credentials allowing the package to behave like the AWS CLI
    if (file.exists(default_credentials_file())) {
        use_credentials()
    }
    return(invisible(NULL))
}

Try the aws.signature package in your browser

Any scripts or data that you put into this service are public.

aws.signature documentation built on July 28, 2018, 1:05 a.m.