hasColorConsole | R Documentation |
Check if the RStudio console supports ANSI color escapes.
hasColorConsole()
TRUE
if ANSI color escapes are supported; FALSE
otherwise.
The hasColorConsole
function was added in version 1.1.216 of
RStudio.
## Not run:
if (rstudioapi::hasColorConsole()) {
message("RStudio console supports ANSI color sequences.")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.