check-vector-isAwsS3Uri: Does the input contain an AWS S3 URI?

check-vector-isAwsS3UriR Documentation

Does the input contain an AWS S3 URI?

Description

Does the input contain an AWS S3 URI?

Usage

isAwsS3Uri(x)

isAnAwsS3Uri(x)

allAreAwsS3Uris(x)

Arguments

x

Object.

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.

Value

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

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)
isAnAwsS3Uri(uris[[1L]])
allAreAwsS3Uris(uris)

## FALSE ====
isAwsS3Uri("xxx")
isAnAwsS3Uri(uris)

steinbaugh/goalie documentation built on Jan. 17, 2024, 5:16 p.m.