Skip to content

crayon

1.5.3

Colored Terminal Output

391packages depend
13.1Mdownloads / year
49.7%test coverage
13/13checks pass

Overview

About
Maintained by Gábor CsárdiFirst published 2014-09-2315 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.26
49.7%
Coverage · measured lines
98%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 358 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
90%
References docs
0%

Downloads

13.1M
CRAN downloads in the past year
Rank #55 · ~36K/day · ~1.1M/mo
Daily download trend is not available in this view yet.
1M30 days
3.2M90 days
13.1M1 year
Compare downloads with other packages →
Also on148.9K r2u319 autocran1.7M conda_forge19.1K c2d4u

Repository

Repository
323Stars
38Forks
0Open issues
0Open PRs
7Releases
322Commits
19Contributors
r
322 commits · Last activity 2025-10-21 · +0.3% stars, 30d

Stars over time

2025-06-16 · 3192026-07-07 · 323

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/r-lib/crayon on 2026-07-19.

Continuous integration (1)
GitHub Actions
Lint, format, editor (3)
AirVS CodeRStudio project
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (3)
grDevicesmethodsutils
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Code Composition
R 2,916 (74%)Rd 1,008 (26%)
Code characteristics
Object systems
S36
Cyclomatic complexity
2.0 median / 29 max
Test cases
43 / 0.26 per code line

Test coverage

Line coverage

50%

Expression

51.1%

Tests / Examples

49.7% / 43% ex

Functions

89 21 exported

Complexity

3.3 avg / 29 max

Call network

89 nodes / 91 edges

Loading call graph…

Lowest coverage

89 functions
FunctionCycloCoverage
chr exp10%
finish exp10%
show_ansi_colors exp30%
%||%20%
-.crayon40%
ansi_colors_25610%

People & History

People (3)
Maintainer (1)
Author, Maintainer · added in 1.3.2
Authors (1)
Author, Maintainer · added in 1.3.2
Contributors (1)
Contributor · added in 1.3.2
Copyright holders (1)
Copyright holder, Funder · added in 1.5.3
Funders (1)
Copyright holder, Funder · added in 1.5.3
Listed in earlier versions (1)
no longer listed · 1.2.0 to 1.3.1
Package Timeline

15 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.5.3Latest
    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
    2022-09-29 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.5.1
    2022-03-26 · diff ↗
  • 1.5.0
    2022-02-14 · diff ↗
  • 1.4.2
    2021-10-30 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.4.1
    2021-02-08 · diff ↗
  • 1.4.0
    2021-01-30 · diff ↗
  • 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 events
  • 1.3.4
    2017-09-16 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.3.2
    2016-06-28 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.3.1
    2015-07-13 · diff ↗
  • 1.3.0
    2015-06-05 · diff ↗
  • 1.2.1
    2015-05-18 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.2.0
    2015-04-09 · diff ↗
  • 1.1.0
    2014-10-15 · diff ↗
  • 1.0.0
    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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →