div <- function() {
cli_div(class = "tmp", theme = list(.tmp = list(color = "yellow")))
cli_text("This is yellow")
}
div()
cli_text("This is not yellow any more")
This works, renders the text as yellow.
However, if I replace cli_text() by cli_bullets(), it doesn't show as yellow.
div <- function() {
cli_div(class = "tmp", theme = list(.tmp = list(color = "yellow")))
cli_bullets("This is yellow")
}
div()
Is there a way to do this? I tried going through the docs, but couldn't find it.
From https://cli.r-lib.org/reference/containers.html#auto-closing
This works, renders the text as yellow.
However, if I replace
cli_text()
bycli_bullets()
, it doesn't show as yellow.Is there a way to do this? I tried going through the docs, but couldn't find it.