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

num_colors

Number of colors the terminal supports


Description

From crayon version 2.0.0, this function is a simple wrapper on num_ansi_colors(), with the additional twist that the crayon.colors option is still obseved, and takes precedence, for compatibility.

Usage

num_colors(forget = FALSE)

Arguments

forget

Ignored. Included for backwards compatibility.

Value

Number of ANSI colors.

Examples

num_colors()

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.