Skip to contents

Download S3 Objects

Usage

s3_download(bucket, object, filepath = NULL, access_key, secret_key, ...)

Arguments

bucket

S3 Bucket name

object

S3 Object key (id)

filepath

Full path of destination file

access_key

S3 Access key id

secret_key

S3 Secret Access key

...

Additional aws.S3::save_object() options

Value

file name

Examples

if (FALSE) { # \dontrun{
s3_objects("sample-bucket") %>%
  filter(str_detect(key, "^HFR")) %>%
  pull(key) %>%
  first() %>%
  s3_download()} # }