parseCssString is a utility function that splits a string into a vector/array. The function pays attention to text qualifiers (single and double quotes) so won't split if the delimiter occurs inside a value.

parseCssString(text, separator = ",", removeEmptyString = TRUE)

Arguments

text

The text to split.

separator

The field separator, default comma.

removeEmptyString

TRUE to not return empty string / whitespace values.

Value

An R vector containing the values from text split up.