has_text: Checks if 'x' is a valid character string and not empty

Description Usage Arguments Value See Also Examples

View source: R/misc_helpers.R

Description

Checks if x is a valid character string and not empty

Usage

1

Arguments

x

single character string (not vectorized)

Value

TRUE or FALSE

See Also

have_text() for the vectorized version

Examples

1
2
3
has_text("") # FALSE
has_text("some text") # TRUE
has_text(c("", "some text")) # FALSE, only first element checked

avidclam/avidstart documentation built on May 17, 2019, 10:01 a.m.