cli
Tools for building attractive command line interfaces in R, with rich text, progress bars and spinners
cli refines terminal output one formatting detail at a time.
◆Recent moves
- 4mo ago
cli 3.6.6 adds inline number and byte formatting styles
New {.num} and {.bytes} inline styles for formatting numbers and byte sizes. Small additions, but these are values nearly every package prints, and centralising their formatting is how cli keeps output consistent across the ecosystem.
View source ↗ - 1y ago
cli 3.6.5 handles long strings in code_highlight()
code_highlight() handles long strings and symbols. A single narrow fix in syntax highlighting.
View source ↗ - 1y ago
cli 3.6.4 makes hyperlink URIs configurable
Pluralization stops mishandling NA, NaN and infinities, progress bars accept infinite totals, and the URIs behind .file, .run, .help and .vignette hyperlinks become configurable via options and environment variables. That last one matters for editors that resolve links their own way.
View source ↗ - 2y ago
cli 3.6.3 builds on ARM Windows, fixes RStudio highlighting
cli builds on ARM Windows, Solarized Dark becomes the default terminal highlighting theme, and syntax highlighting no longer fails in RStudio when rstudioapi is absent. Platform and host-environment robustness rather than new formatting capability.
View source ↗ - 2y ago
cli 3.6.2 makes collapsed strings follow serial comma rules
ansi_collapse() gains a sep2 argument for length-two inputs, defaulting to " and " so collapsed strings follow serial comma rules, and trunc = 1 finally behaves as documented. Typographic detail, which is exactly what this package exists to get right.
View source ↗ - 3y ago
cli 3.6.1 disables ANSI hyperlinks on the RStudio render plane
ANSI hyperlinks are switched off on the RStudio render plane, where they did not render correctly. A one-line environment detection fix.
View source ↗