using an argument list with aws.s3 in R

43 Views Asked by At

I want to use connection arguments multiple times in R but I can't find away to declare and then reuse them with the aws.s3 library.

For example - this works:

library(aws.s3)

object_exists(
      object = "some_object_name"
      ,bucket = "some_bucket_name"
      ,region = "some_region_name"
      ,key = "some_key"
      ,secret = "some_secret
    )

But this does not:

    library(aws.s3)

    connection_args <- list(
      object = "some_object_name"
      ,bucket = "some_bucket_name"
      ,region = "some_region_name"
      ,key = "some_key"
      ,secret = "some_secret"
    )

    object_exists(connection_args)
0

There are 0 best solutions below