check-scalar-isString: Does the input contain a (non-empty) character string?

check-scalar-isStringR Documentation

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

Description

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

Usage

isString(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.

Note

Updated 2022-12-14.

Examples

## TRUE ====
isString("hello")

## FALSE ====
isString(1)
isString("")
isString(NA_character_)

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.