Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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()

Value

TRUE if the current R session supports color.

Examples

has_color()

crayon

Colored Terminal Output

v1.4.1
MIT + file LICENSE
Authors
Gábor Csárdi [aut, cre], Brodie Gaslam [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.