powered by
s3_file_create create file on AWS S3, if file already exists it will be left unchanged.
s3_file_create
AWS S3
s3_dir_create create empty directory of AWS S3.
s3_dir_create
s3_file_create(path, overwrite = FALSE, ...)s3_bucket_create( path, region_name = NULL, mode = c("private", "public-read", "public-read-write", "authenticated-read"), versioning = FALSE, ... )s3_dir_create(path, overwrite = FALSE, ...)
s3_bucket_create( path, region_name = NULL, mode = c("private", "public-read", "public-read-write", "authenticated-read"), versioning = FALSE, ... )
s3_dir_create(path, overwrite = FALSE, ...)
character vector of s3 uri paths
(character): A character vector of path or s3 uri.
(logical): Overwrite files if the exist. If this is FALSE and the file exists an error will be thrown.
FALSE
parameters to be passed to s3_put_object, s3_create_bucket
s3_put_object
s3_create_bucket
(character): region for AWS S3 bucket, defaults to s3_file_system() class region.
s3_file_system()
(character): A character of the mode
(logical)
if (FALSE) { # Require AWS S3 credentials temp_file = s3_file_temp(tmp_dir= "MyBucket") s3_file_create(temp_file) }
Run the code above in your browser using DataLab