Add style to a string
See names(styles)
, or the crayon manual for available styles.
style(string, as = NULL, bg = NULL)
string |
Character vector to style. |
as |
Style function to apply, either the function object,
or its name, or an object to pass to |
bg |
Background style, a style function, or a name that
is passed to |
Styled character vector.
## These are equivalent style("foobar", bold) style("foobar", "bold") bold("foobar")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.