Description Usage Arguments References Examples
View source: R/download-file.R
Download an S3 object to a file
1 2 3 4 5 6 | download_file(bucket, key, filename, extra_args = NULL,
transfer_config = list(multipart_threshold = 8388608L, max_concurrency =
10L, multipart_chunksize = 8388608L, num_download_attempts = 5L, max_io_queue
= 100L, io_chunksize = 262144L, use_threads = TRUE),
aws_access_key_id = NULL, aws_secret_access_key = NULL,
aws_session_token = NULL, region_name = NULL, profile_name = NULL)
|
bucket |
name of the bucket to download from. |
key |
name of the key to download from. |
filename |
path to the file to download to. |
extra_args |
arguments that may be passed to the client operation. |
transfer_config |
transfer configuration to be used when performing the transfer. Pre-defined, default values are provided for the following settings:
|
aws_access_key_id |
AWS access key id |
aws_secret_access_key |
AWS secret access key |
aws_session_token |
AWS session token |
region_name |
region name |
profile_name |
profile name |
https://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.download_file
1 2 3 4 | ## Not run:
download_file("mybucket", "hello.txt", "/tmp/hello.txt")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.