View source: R/text_util.bare.R
spec_from_text | R Documentation |
textspec
Values Based on String Prefixes Return 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)
x |
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.
Character vector with the same length as x
, containing
textspec
values. Values are determined by looking for special
prefixes in the text strings.
prefix_text
to add or remove special prefixes to text
strings based on textspec
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.