A chk function template.

chk_function_template(x, x_name = NULL)

Arguments

x

The object to check.

x_name

A string of the name of object x or NULL.

Value

NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.

Details

Checks if character using [vld_function_template](x).

Examples

chk_function_template("1") try(chk_function_template(1))
#> Error : `1` must be a character.