Skip to contents

Base R replacement for checkmate::test_string

Usage

is_string(x, min.chars = 1, null.ok = FALSE)

Arguments

x

Object to test

min.chars

Minimum number of characters (default 1)

null.ok

Allow NULL? (default FALSE)

Value

TRUE if x is a valid string, FALSE otherwise