crayon
1.5.3Colored Terminal Output
Overview
The crayon package is now superseded. Please use the 'cli' package for new projects. Colored terminal output on terminals that support 'ANSI' color and highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color support is automatically detected. Colors and highlighting can be combined and nested. New styles can also be created easily. This package was inspired by the 'chalk' 'JavaScript' project.
- The semantics of the
cli.default_num_colorsoptions is now different. It is now used as the default number of colors if the number of colors is not already set by thecli.num_colorsoption, theR_CLI_NUM_COLORSenvironment variable, thecrayon.enabledandcrayon.colorsoptions, theNO_COLORenvironment variable, theknitr.in.progressoption, or asink()call for the stream. This matches the behavior of the cli package.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- WARNING12 OK, 1 WARNING2026-10-01
- OK13 OK2026-08-21
- WARNING12 OK, 1 WARNING2026-08-17
- OK13 OK2026-08-05
Show 2 earlier changesHide 2 earlier changes
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 21includes a package overview page
- Examples that run
- 100%19 run in a plain check
- Exported functions with examples
- 90%
- Documented parameters
- 100%
- Return-value docs
- 90%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/r-lib/crayon on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-10-21 · The repository has a site deploy workflow
pkgdown site last built 2024-06-23
Show all practicesHide 1 practice
Dependencies
Installing crayon adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 250 more dependents and 92 packages that suggest it on CRAN ↗
Code & Tests
People & History
Maintainer since 1.0.0 (2014)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.5.3Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.5.22022-09-29 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.5.12022-03-26 · diff ↗
- 1.5.02022-02-14 · diff ↗
- 1.4.22021-10-30 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.4.12021-02-08 · diff ↗
- 1.4.0
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
Show 12 earlier eventsHide 12 earlier events
- 1.3.4
- RR 3.4.0 released · 2017-04-21
- 1.3.2
- RR 3.3.0 released · 2016-05-03
- 1.3.12015-07-13 · diff ↗
- 1.3.0
- 1.2.12015-05-18 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.2.0
- 1.1.02014-10-15 · diff ↗ ·
added 5 exports
combine_styles, drop_style, make_style, num_colors, show_ansi_colors - 1.0.02014-09-23
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-09-23
- Total releases
- 15 / 12 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 39 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("crayon")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.