file_exists: Test if a file exists in the specified bucket

Description Usage Arguments References Examples

View source: R/file-exists.R

Description

Test if a file exists in the specified bucket

Usage

1
2
3
file_exists(bucket, key, aws_access_key_id = NULL,
  aws_secret_access_key = NULL, aws_session_token = NULL,
  region_name = NULL, profile_name = NULL)

Arguments

bucket

name of the bucket to download from.

key

name of the key (file).

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

References

https://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.download_file

Examples

1
2
3
4
## Not run: 
file_exists("mybucket", "hello.txt")

## End(Not run)

hrbrmstr/roto.s3 documentation built on May 29, 2019, 11:42 a.m.