s3io_read | R Documentation |
Read a file in from AWS S3
s3io_read( bucket, key, readfun, ..., .localfile = fs::file_temp(), .rm_localfile = TRUE, .opts = NULL )
bucket |
<chr(1)> AWS S3 bucket name. |
key |
<chr(1)> 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 |
<chr(1)> The local filepath of the downloaded file. |
.rm_localfile |
<lgl(1)> Should the local filepath be deleted once it has been read?
If |
.opts |
<dict> AWS CLI additional –opts, if not the default (from awscli2). |
The returned value from readfun
.
## Not run: s3io_read("mybucket", "my/object/key.csv", readr::read_csv, col_names = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.