| as_spar.spork | R Documentation |
Parses spork. Converts length-one character
to vector of tokens. Explicit tokens include
*._^ and any of these escaped with
backslash, e.g. '\*'.
Backslash-n is an explicit token ('\n').
Backslash-backtick is an explicit token ('\`').
One or more consecutive whitespace characters are a single token,
as are one or more consecutive octothorpes (#).
Any string of characters delimited by
one or more of the above is implicitly
a token as well. As of version 0.2.6,
supported names of Greek letters are
tokens (see greek) possibly
bounded by backticks (to be interpreted literally).
## S3 method for class 'spork'
as_spar(x, ...)
x |
length-one character using spork syntax |
... |
ignored arguments |
spar (character vector)
Other spar:
as_plotmath.spar(),
as_spar(),
as_spar.default()
Other spork:
[.spork(),
[[.spork(),
as.list.spork(),
as.png.spork(),
as_html.spork(),
as_latex.spork(),
as_plotmath.spork(),
as_previews.spork(),
as_spar.default(),
as_spork(),
as_spork.character(),
as_spork.factor(),
as_spork.spork(),
ggplot.spork(),
greek()
as_spar(as_spork('one joule (Omega) ~ 1 kg*m^2./s^2'))
as_spar(as_spork('one joule (`Omega`) ~ 1 kg*m^2./s^2'))
as_spar(as_spork('one joule (\\`Omega\\`) ~ 1 kg*m^2./s^2'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.