s3_download_file: Download a file from S3

View source: R/s3.R

s3_download_fileR Documentation

Download a file from S3

Description

Download a file from S3

Usage

s3_download_file(uri, file, force = TRUE)

Arguments

uri

string, URI of an S3 object, should start with s3://, then bucket name and object key

file

string, location of local file

force

boolean, overwrite local file if exists

Value

invisibly file

References

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.download_file

Examples

## Not run: 
s3_download_file('s3://botor/example-data/mtcars.csv', tempfile())

## End(Not run)

botor documentation built on March 31, 2023, 9:53 p.m.