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/goalie documentation built on Dec. 11, 2023, 11:36 p.m.