Does the input contain an AWS S3 URI?
Source:R/check-vector-isAwsS3Uri.R
check-vector-isAwsS3Uri.Rd
Does the input contain an AWS S3 URI?
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.
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