check-vector-isHexColor: Does the input contain hexadecimal colors?

check-vector-isHexColorR Documentation

Does the input contain hexadecimal colors?

Description

Does the input contain hexadecimal colors?

Usage

isHexColor(x)

allAreHexColors(x)

Arguments

x

Object.

Value

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

Functions

  • isHexColor(): Vectorized.

  • allAreHexColors(): Scalar.

Note

Updated 2023-10-02.

See Also

assertive::is_hex_color().

Examples

## TRUE ====
x <- viridis::viridis(n = 2L)
class(x)
print(x)
isHexColor(x)

## FALSE ====
x <- ggplot2::scale_color_manual
class(x)
isHexColor(x)

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