Learn R Programming

rstudioapi (version 0.15.0)

hasColorConsole: Check if console supports ANSI color escapes.

Description

Check if the RStudio console supports ANSI color escapes.

Usage

hasColorConsole()

Arguments

Value

TRUE if ANSI color escapes are supported; FALSE otherwise.

Examples

Run this code

if (FALSE) {
if (rstudioapi::hasColorConsole()) {
  message("RStudio console supports ANSI color sequences.")
}

}


Run the code above in your browser using DataLab