Skip to contents

Splits a comma-separated string into a trimmed character vector. Returns NULL if input is empty, NULL, or has zero length.

Usage

parse_optional_vector(x)

Arguments

x

character string with comma-separated values

Value

character vector or NULL if input is empty

Examples

if (FALSE) { # \dontrun{
parse_optional_vector("a, b, c")
parse_optional_vector("")
} # }