View source: R/text_util.bare.R
prefix_text | R Documentation |
textspec
Values Add or remove special, textspec
-related prefixes from text strings.
This is an internal utility function, not intended to be called by package
users.
prefix_text(x, spec, action)
x |
Character vector to which special prefixes are to be added or removed. |
spec |
Character vector of valid |
action |
Character scalar, either "add" or "remove", depending on whether the
special prefix is to be added or removed from |
Currently supported textspec
values and the associated prefixes
are: "plain" (no prefix); "plotmath" (prefix MATH_
); and "markdown"
(prefix MKDN_
).
Character vector like x
, with prefixes added or removed. NA values
in x
remain NA.
spec_from_text
to derive spec
by looking for special
prefixes in text strings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.