Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

s3_upload_file

Upload a file to S3


Description

Upload a file to S3

Usage

s3_upload_file(file, uri, content_type = mime_guess(file))

Arguments

file

string, location of local file

uri

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

content_type

content type of a file that is auto-guess if omitted

Value

invisibly uri

References

See Also

Examples

## Not run: 
t <- tempfile()
write.csv(mtcars, t, row.names = FALSE)
s3_upload_file(t, 's3://botor/example-data/mtcars.csv')
unlink(t)
## note that s3_write would have been a much nicer solution for the above

## End(Not run)

botor

'AWS Python SDK' ('boto3') for R

v0.3.0
AGPL-3
Authors
Gergely Daróczi [aut, cre] (<https://orcid.org/0000-0003-3149-8537>), System1 [fnd]
Initial release
2020-02-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.