botor (version 0.4.0)

check_s3_uri: Check if an argument looks like an S3 bucket

Description

Check if an argument looks like an S3 bucket

Usage

check_s3_uri(x)

Arguments

x

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

Examples

Run this code
check_s3_uri('s3://foo/bar')
check_s3_uri('https://foo/bar')
if (FALSE) {
assert_s3_uri('https://foo/bar')
}

Run the code above in your browser using DataLab