crayon (version 1.5.2)

has_color: Does the current R session support ANSI colors?

Description

From crayon 2.0.0, this function is simply a wrapper on num_ansi_colors().

Usage

has_color()

Arguments

Value

TRUE if the current R session supports color.

Examples

Run this code
has_color()

Run the code above in your browser using DataLab