Frequently Asked Questions
It is probably a mistake in cli’s ANSI support detection algorithm. Please open an issue at https://github.com/r-lib/cli/issues and don’t forget to tell us the details of your platform and terminal or GUI.
Set the NO_COLOR
environment variable to a non-empty value. You can do
this in your .Renviron
file (use usethis::edit_r_environ()
).
If you want to do this for testthat tests, then consider using the 3rd
edition on testthat, which does turn off ANSI styling automatically
inside test_that()
.
file.choose()
Try calling flush.console()
to flush the console, before
file.choose()
. If flushing does not work and you are in RStudio, then
it is probably this RStudio bug:
https://github.com/rstudio/rstudio/issues/8040 See more details at
https://github.com/r-lib/cli/issues/151
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.