cli
cli copied to clipboard
Tools for making beautiful & useful command line interfaces
Hello, I am trying to use cli hyperlinks to line numbers with .href ```r # With .Rprofile existing # link works cli::cli_bullets("{.file ~/.Rprofile}") #> ~/.Rprofile # link works and takes...
Hi, Here is a very minor bug that happens when passing bare dates to cli. An easy workaround is wrapping the value in curly braces. Here is a reprex with...
I was looking through the semantic CLI vignette to find guidance on what inline text formatting to use for a **function argument/parameter**. I noticed in [vroom](https://github.com/tidyverse/vroom/blob/788df43997c0cee87588cc6c2bafd12784f51b83/R/path.R#L41-L47) that `{arg file}` is...
From https://cli.r-lib.org/reference/containers.html#auto-closing ```r div
That works similarly to `cli.default_num_colors`, but for hyperlinks.
``` r library(cli) ansi_collapse(1) #> [1] "1" ansi_collapse(1, style = "head") #> [1] "1" ansi_collapse(1, style = "head", width = 70) #> [1] "1, and 1" ansi_collapse(1, style = "head",...
Doesn't reprex but in the console: ``` r f Error in `rep()`: #> ! invalid 'times' argument #> Run `rlang::last_error()` to see where the error occurred. #> Error: #> !...
Using `options(cli.progress_handlers='rstudio')` doesn't work, due to `cli:::builtin_handler_rstudio$able()` returning `FALSE`. Looking at the code for the function, it is checking that `.Platform$GUI == "Rstudio"`, while for me at least (runnning RStudio...
e.g. create an `.Rmd` that contains this and knitr it from the IDE: ```` ```{r} cli::cli_progress_bar(total = 20) for (i in 1:20) { cli::cli_progress_update() Sys.sleep(0.2) } ``` ```` The progress...
I think it would be useful. as an antonym to `.emph` `pillar::style_subtle()` as an inspiration? I did a bit of investigation and rlang use `silver()` for printing see last trace....