s3_upload_file | R Documentation |
Upload a file to S3
s3_upload_file(file, uri, content_type = mime_guess(file))
file |
string, location of local file |
uri |
string, URI of an S3 object, should start with |
content_type |
content type of a file that is auto-guess if omitted |
invisibly uri
s3_download_file
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.