Skip to contents

assert_matches_chr() is an Assert function that validates that an object conforms to required condition(s). If the object does not meet all required conditions, program execution will be stopped and an error message provided. Specifically, this function implements an algorithm to assert matches character vector. The function is called for its side effects and does not return a value.

Usage

assert_matches_chr(x, match_chr)

Arguments

x

An object

match_chr

Match (a character vector)

Value

No return value, called for side effects.