hasColorConsole: Check if Console Supports ANSI Color Escapes

Description Usage Value Note Examples

Description

Check if Console Supports ANSI Color Escapes

Usage

1

Value

a boolean

Note

The hasColorConsole function was added in version 1.1.216 of RStudio.

Examples

1
2
3
4
5
6
## Not run: 
if (rstudioapi::hasColorConsole()) {
  message("RStudio console supports ANSI color sequences.")
}

## End(Not run)

rstudio/rstudioapi documentation built on June 7, 2019, 3:43 p.m.