cli 2.0.0 has a new set of functions that help creating a CLI using a set of higher level elements: headings, paragraphs, lists, alerts, code blocks, etc. The formatting of all elements can be customized via themes. See the “Building a semantic CLI” article on the package web site: https://cli.r-lib.org
cli has now functions to add ANSI styles to text. These use the crayon package internally, and provide a simpler interface. See the
style_* and also the
combine_ansi_styles() functions (#51).
is_ansi_tty() function detects if ANSI control sequences can be used for a stream.
make_spinner() function helps integrating spinners into your functions.
symbol always uses ASCII symbols when the
cli.unicode option is set to