Skip to contents

Stops with an informative message if x is not a single non-NA character string.

Usage

nemo_assert_scalar_chr(x, arg = deparse(substitute(x)))

Arguments

x

Object to check.

arg

Name of x used in the error message; defaults to the expression passed as x.

Value

x invisibly on success.