-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli.user_theme
has no effect on abort
and friends
#1766
Comments
|
Nope, unfortunately same output: options(cli.user_theme = list(
".cli_rlang .bullet-*" = list(before = "* "),
".cli_rlang .bullet-i" = list(before = "* "),
".cli_rlang .bullet-x" = list(before = "* "),
".cli_rlang .bullet-v" = list(before = "* "),
".cli_rlang .bullet->" = list(before = "* ")
))
cli::cli_abort(c(
"The error message.",
"*" = "Regular bullet.",
"i" = "Informative bullet.",
"x" = "Cross bullet.",
"v" = "Victory bullet.",
">" = "Arrow bullet."
))
#> Error:
#> ! The error message.
#> * Regular bullet.
#> i Informative bullet.
#> x Cross bullet.
#> v Victory bullet.
#> > Arrow bullet. Created on 2024-12-06 with reprex v2.1.1 |
I think this is an issue in cli? I just transferred your issue. |
It is not possible to theme the bullets, your only option to customize them is to set the |
Ok, then the docs of |
hmm it does look like that it used to be possible to customise them: https://rlang.r-lib.org/reference/topic-condition-customisation.html#changing-the-bullet-symbols Has something changed in that regard @gaborcsardi ? |
Probably the PR that I linked above. |
Crosspost
I originally asked this question on Stackoverflow, but as I simply copied and pasted the official documents on condition customization I think it is indeed an issue (either with the docs or the code).
Problem
I tried to customize the look and feel of the condition messages but to not avail. I followed word by word the docs but in both the native R console and the RStudio console I still see the default bullets despite my efforts to change them to
*
(or its Unicode equivalent for all it matters):Result
R Console
RStudio Console
Expected Results
I would expect to see
*
(or its Unicode equivalent) as bullet for all bullets.Session Info
The text was updated successfully, but these errors were encountered: