Skip to content

crayon

1.5.3

Colored Terminal Output

298packages dependsuggested by 92
13.5Mdownloads / year
49.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.5.3
  • The semantics of the cli.default_num_colors options is now different. It is now used as the default number of colors if the number of colors is not already set by the cli.num_colors option, the R_CLI_NUM_COLORS environment variable, the crayon.enabled and crayon.colors options, the NO_COLOR environment variable, the knitr.in.progress option, or a sink() call for the stream. This matches the behavior of the cli package.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.5.3
READMEYes · 358 wordsVignettesNoNEWSYes · 100% structured · mentions 1.5.3Citation fileNoWebsiteYes · pkgdown
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

13.5M
CRAN downloads in the past year
Rank #50 · ~36.9K/day · ~1.1M/mo
Daily download trend is not available in this view yet.
1.1M30 days
3.2M90 days
13.5M1 year
Compare downloads with other packages →
Also on206.4K r2u245 autocran2.3M conda_forge23.2K c2d4u

Repository

r-lib/crayon ↗Organization: r-lib
324Stars
39Forks
0Open issues
1Open PRs
7Releases
322Commits
19Commit identities
r
322 commits · Last activity 2025-10-21 · 0% stars, 30d · Default branch at 1.5.3.9000, ahead of CRAN 1.5.3 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-08-14 · 3202026-09-03 · 324
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (3)
pkgdown

GitHub Pages site last deployed 2025-10-21 · The repository has a site deploy workflow

pkgdown site last built 2024-06-23

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 1 practice
Lint, format, editor (3)
AirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing crayon adds no packages beyond those that come with R.

Depends (0)
none
Imports (3)
grDevicesmethodsutils
LinkingTo (0)
none
Enhances (0)
none

People & History

People (3)
Author, Maintainer · added in 1.3.2
Contributor · added in 1.3.2
Copyright holder, Funder · added in 1.5.3

Maintainer since 1.0.0 (2014)

Listed in earlier versions (1)
no longer listed · 1.2.0 to 1.3.1
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.5.3Latest
    record
    2024-06-20 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.5.2
    record
    2022-09-29 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.5.1
    record
    2022-03-26 · diff ↗
  • 1.5.0
    record
    2022-02-14 · diff ↗
  • 1.4.2
    record
    2021-10-30 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.4.1
    record
    2021-02-08 · diff ↗
  • 1.4.0
    record
    2021-01-30 · diff ↗ ·
    added 3 exports
    has_hyperlink, hyperlink, num_ansi_colors
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
Show 12 earlier eventsHide 12 earlier events
  • 1.3.4
    record
    2017-09-16 · diff ↗ ·
    added 1 export
    col_align
  • R
    R 3.4.0 released · 2017-04-21
  • 1.3.2
    record
    2016-06-28 · diff ↗ ·
    removed 1 export
    start
  • R
    R 3.3.0 released · 2016-05-03
  • 1.3.1
    record
    2015-07-13 · diff ↗
  • 1.3.0
    record
    2015-06-05 · diff ↗ ·
    added 2 exports
    finish, start
  • 1.2.1
    record
    2015-05-18 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.2.0
    record
    2015-04-09 · diff ↗ ·
    added 4 exports
    col_nchar, col_strsplit, col_substr, col_substring
  • 1.1.0
    record
    2014-10-15 · diff ↗ ·
    added 5 exports
    combine_styles, drop_style, make_style, num_colors, show_ansi_colors
  • 1.0.0
    record
    2014-09-23
  • R
    R 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")
Csárdi, G., Posit Software, PBC, & Gaslam, B. (2024). crayon: Colored Terminal Output (Version 1.5.3) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for crayon version 1.5.3 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy