tests/testthat/test-public-object.R

context("Public object tests")

test_that("basic usage of get_object for anonymous user", {
    expect_true(is.raw(get_object(object = "README.analysis_history", bucket = "1000genomes", key = "", secret = "", region = "us-east-1")))
})

Try the aws.s3 package in your browser

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

aws.s3 documentation built on April 14, 2020, 5:15 p.m.