
Last chance! 50% off unlimited learning
Sale ends in
Check if the RStudio console supports ANSI color escapes.
hasColorConsole()
TRUE
if ANSI color escapes are supported; FALSE
otherwise.
if (FALSE) {
if (rstudioapi::hasColorConsole()) {
message("RStudio console supports ANSI color sequences.")
}
}
Run the code above in your browser using DataLab