x is character string

assert_string(
  x,
  message = "%s must be character string",
  name = deparse(substitute(x))
)

Arguments

x

Value to check if character string

message

Message to output if x not character string

name

Name

Details

x is character string