Style text from console

style_console(x, ...)

Arguments

x

Text to style

...

Arguments passed on to styler::style_text

text

A character vector with text to style.

style

A function that creates a style guide to use, by default tidyverse_style() (without the parentheses). Not used further except to construct the argument transformers. See style_guides() for details.

transformers

A set of transformer functions. This argument is most conveniently constructed via the style argument and .... See 'Examples'.

include_roxygen_examples

Whether or not to style code in roxygen examples.