check-scalar-isCharacter: Does the input contain a (non-empty) character vector?

check-scalar-isCharacterR Documentation

Does the input contain a (non-empty) character vector?

Description

Does the input contain a (non-empty) character vector?

Usage

isCharacter(x, nullOk = FALSE)

Arguments

x

Object.

nullOk

logical(1). If set to TRUE, x may also be NULL.

Value

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

Enforced parameters

  • Must have length.

  • Cannot contain NA strings.

  • Cannot contain empty ("") strings.

Note

Updated 2019-07-29.

See Also

assertive.strings::is_non_missing_nor_empty_character().

Examples

## TRUE ====
isCharacter("a")

## FALSE ====
isCharacter(NULL)
isCharacter(character())
isCharacter("")
isCharacter(NA_character_)


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