tests/testthat.R

library("testthat")
library("aws.alexa")

token_file <- try(suppressWarnings(readLines("aws.alexa_key")), silent = TRUE)
if (!inherits(token_file, "try-error")) {
    key <- unlist(strsplit(token, ","))[1]
    secret <- unlist(strsplit(token, ","))[2]
    set_secret_key(key, secret)
    test_check("aws.alexa")
}

Try the aws.alexa package in your browser

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

aws.alexa documentation built on Nov. 10, 2020, 3:49 p.m.