textspec
Values Based on String PrefixesReturn a vector of textspec
values based on special prefixes in
strings of x
. This is an internal utility function, not intended
to be called by package users.
spec_from_text(x)
Character vector with the same length as x
, containing
textspec
values. Values are determined by looking for special
prefixes in the text strings.
Character vector.
Currently supported textspec
values and the associated prefixes
are: "plain" (no recognized prefix); "plotmath" (prefix MATH_
); and
"markdown" (prefix MKDN_
).
The returned value will be "plain" for elements of x
that are NA.
prefix_text
to add or remove special prefixes to text
strings based on textspec
.