aws | R Documentation |
AWS S3 bucket downloader.
aws(
input_url,
output_path = file.path(tempdir(), basename(input_url)),
bucket,
force_overwrite = FALSE,
verbose = TRUE,
...
)
input_url |
URL to remote file. |
output_path |
The file name you want to save the download as. |
bucket |
Character string with the name of the bucket, or an object of class “s3_bucket”. |
force_overwrite |
Overwrite existing file. |
verbose |
Print messages. |
... |
Arguments passed on to
|
Path where the file has been downloaded
https://blog.djnavarro.net/posts/2022-03-17_using-aws-s3-in-r/
Other downloaders:
axel()
,
downloader()
,
wget()
bucket <- "s3://broad-alkesgroup-ukbb-ld/"
input_url <- "UKBB_LD/chr10_135000001_138000001.gz"
out <- aws(input_url = input_url, bucket = bucket)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.