Skip to contents

Does the input contain an AWS S3 URI?

Usage

isAwsS3Uri(x)

isAnAwsS3Uri(x)

allAreAwsS3Uris(x)

Arguments

x

Object.

Value

TRUE on success; FALSE on failure, with cause set.

Details

This assert check is intended to be simple and does not check to see if the URL exists (is active). For that, refer to isExistingUrl instead.

Functions

  • isAwsS3Uri(): Vectorized.

  • isAnAwsS3Uri(): Scalar. Requires a single URI.

  • allAreAwsS3Uris(): Scalar. Checks that all strings are URIs.

Note

Updated 2023-11-03.

Examples

uris <- c("s3://acidgenomics.com/", "s3://koopa.acidgenomics.com/")

## TRUE ====
isAwsS3Uri(uris)
#> [1] TRUE TRUE
isAnAwsS3Uri(uris[[1L]])
#> [1] TRUE
allAreAwsS3Uris(uris)
#> [1] TRUE

## FALSE ====
isAwsS3Uri("xxx")
#> [1] FALSE
isAnAwsS3Uri(uris)
#> [1] FALSE