cli icon indicating copy to clipboard operation
cli copied to clipboard

Tools for making beautiful & useful command line interfaces

Results 142 cli issues
Sort by recently updated
recently updated
newest added

Hi, The inline markup features in {cli} are wonderful, and it would be very sad to limit their reach to only printing. For instance, I would love to be able...

feature

If I'm using cli in a package, often I avoid `stopifnot()` because the unformatted error messages feel jarring compared with those produced by `cli_abort()` and friends. I'm guessing cli has...

feature

With {cli} 3.6.1. Directly from the examples of `cli_vec()`: ``` r library(cli) x Column names: mpg, cyl, disp, …, gear, and carb. ``` Created on 2023-11-24 with [reprex v2.0.2](https://reprex.tidyverse.org) `vec-sep`...

Is there a way to write a suppressible startup message with `cli`? I'm writing a package for beginners of R and wanted to give some hints, but startup messages need...

feature

As per slack discussion This test passes when executed via `test_active_file()` or `test()` in the RStudio console, but fails in the RStudio build pane or in a terminal inside RStudio....

https://github.com/r-lib/lifecycle/issues/167 revealed that lifecycle signaling is slow due to cli eventually calling `rstudioapi::getVersion()` and `rstudioapi::versionInfo()$mode`. I've made a request for `rstudioapi::getMode()`, which should be _massively_ faster than `versionInfo()$mode` https://github.com/rstudio/rstudioapi/issues/280 If...

upkeep

`cli_progress_along()` seems to be skipping the first iteration, and after 2 seconds, the function outputs the message regarding the first iteration even though it is on the second?   ``` r...

bug

I feel like it took me way too long to stumble opon these two in [cli_vec()](https://cli.r-lib.org/reference/cli_vec.html). Shouldn't this be mentioned in [here](https://cli.r-lib.org/articles/semantic-cli.html#inline-lists-of-items) or [there](https://cli.r-lib.org/articles/semantic-cli.html#inline-lists-of-items)? I was fortunate to find this...

documentation

The [`cli_warning` and `cli_inform` functions]( https://github.com/r-lib/cli/blob/cecd95b05412ab24e112f192612c585f70a73c80/R/rlang.R#L57-L72) work by formatting their arguments as a single string, which then gets passed on to `rlang::warn`/`rlang::inform` Unfortunately this means that when inspecting the produced...

Running in RStudio R console this leads to an internal error ````r > cli::cli_abort("processing file: report.qmd\r\n\r |") Error: ! ! Internal error in `cli::ansi_strwrap()` Run `rlang::last_trace()` to see where the...

bug