Skip to content

Releases: r-lib/cli

v2.0.1

10 Jan 13:55
Compare
Choose a tag to compare
  • Symbols (symbol$*) are now correctly printed in RStudio on Windows (#124).

  • The default theme for cli_code() output looks better now, especially
    in RStudio (#123).

  • Remove spurious newline after a cli_process_start() was cleared
    manually, and also at the end of the function.

v2.0.0

09 Dec 10:37
Compare
Choose a tag to compare

Semantic command line interface tools

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

Bug fixes:

  • Fix a bug in is_dynamic_tty(), setting R_CLI_DYNAMIC="FALSE" now
    properly turns dynamic tty off (#70).

v1.1.0

22 Mar 10:03
Compare
Choose a tag to compare
  • cli has now functions to add ANSI styles to text. These use the crayon
    package internally, and provide a simpler interface. See the col_*,
    bg_*, style_* and also the make_ansi_style() and
    combine_ansi_styles() functions (#51).

  • New is_dynamic_tty() function detects if \r should be used for a
    stream (#62).

  • New is_ansi_tty() function detects if ANSI control sequences can be
    used for a stream.

  • New ansi_hide_cursor(), ansi_show_cursor() and
    ansi_with_hidden_cursor() functions to hide and show the cursor in
    terminals.

  • New make_spinner() function helps integrating spinners into your
    functions.

  • Now symbol always uses ASCII symbols when the cli.unicode option is
    set to FALSE.

Bug fix release

26 Sep 20:18
Compare
Choose a tag to compare

Release Notes

  • New cli_sitrep() function, situation report about UTF-8 and ANSI
    color support (#53).

  • Fall back to ASCII only characters on non-Windows platforms without
    UTF-8 support, and also in LaTeX when running knitr (#34).