s3io_read(bucket, key, readfun, ..., .localfile = tempfile(), .rm_localfile = TRUE, .get_object_args = list())
bucket | [string] AWS S3 bucket name. |
---|---|
key | [string] AWS S3 object key. |
readfun | [function] A read function where the first argument is a filepath.
The function's signature should look like |
... | Additional arguments forwarded on to |
.localfile | [string] The local filepath of the downloaded file. |
.rm_localfile | [boolean] Should the local filepath be deleted once it has been read?
If |
.get_object_args | [list] Additional optional args passed on to |
The returned value from readfun
.
# NOT RUN { s3io_read("mybucket", "my/object/key.csv", readr::read_csv, col_names = TRUE) # }