ITADN
r-lib/cli

版本发布 5

cli 3.6.5v3.6.5
? · 2025-04-24

* `code_highlight()` supports long strings and symbols (#727 @moodymudskipper).

cli 3.6.4v3.6.4
? · 2025-02-13

* Pluralization now handles edge cases (`NA`, `NaN`, `Inf` and `-Inf`) better (@rundel, #716). * The URI generated for `.file`, `.run`, `.help` and `.vignette` hyperlinks can now be configured via options and env vars (@jennybc, #739, #744). * `cli_progress_bar()` now accepts `total` = Inf or -Inf which mimics the behavior of when `total` is NA (@LouisMPenrod, #630). * `num_ansi_colors()` now does not warn in Emacs if the `INSIDE_EMACS` environment variable is not a proper version number (@rundel, #689). * `ansi_collapse()` and inline collapsing now uses `last` as the separator (without the serial comma) for two-element vectors if `sep2` is not given (@rundel, #681). * `ansi_collapse()` is now correct for length-1 vectors with style "head" if width is specified (@rundel, #590). * New `hash_xxhash()` etc. functions to calculate the xxHash of strings, raw vectors, objects, files.

cli 3.6.3v3.6.3
? · 2024-06-23

* cli now builds on ARM Windows. * "Solarized Dark" is now the default syntax highlighting theme in terminals. * The `{.obj_type_friendly}` inline style now only shows the first class name (#669 @olivroy). * Syntax highlighting now does not fail in RStudio if the rstudioapi package is not installed (#697).

cli 3.6.2v3.6.2
? · 2023-12-11

* `ansi_collapse(x, trunc = 1, style = "head")` now indeed shows one element if `length(x) == 2`, as documented (@salim-b, #572). * `ansi_collapse()` gains a `sep2` argument to specify a seperate separator for length-two inputs. It defaults to `" and "` which, in conjunction with the other defaults, produces a collapsed string that fully adheres to the [serial comma](https://en.wikipedia.org/wiki/Serial_comma) rules. (@salim-b, #569) * `ansi_string()` is now an exported function (@multimeric, #573).

cli 3.6.1v3.6.1
? · 2023-03-26

* ANSI hyperlinks are now turned off on the RStudio render plane (#581).