style

0th

Percentile

Add style to a string

See names(styles), or the crayon manual for available styles.

Usage
style(string, as = NULL, bg = NULL)
Arguments
string
Character vector to style.
as
Style function to apply, either the function object, or its name, or an object to pass to make_style.
bg
Background style, a style function, or a name that is passed to make_style.
Value

Styled character vector.

Aliases
  • style
Examples
## These are equivalent
style("foobar", bold)
style("foobar", "bold")
bold("foobar")
Documentation reproduced from package crayon, version 1.3.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.