R Observatory
Search
install.packages("col2hex2col")
CRAN 30-day downloads, method
339+32.4% up on the 30 days before, the better direction
Test coverage, method
86%of lines run by tests

Provides simple functions to convert between color names and hexadecimal color codes using an extensive database of over 32,000 colors. Includes all 657 R built-in colors plus the comprehensive color-names database. The package supports bidirectional conversion with backward compatibility, prioritizing R colors when available.

Maintainer
Antti Rask
Latest release
18 Feb 2026
First release
21 Jan 2026

Compare with another package

More details
Releases
2
Needs compilation
No
Needs R
>= 3.5.0
Config/testthat/edition
3
RoxygenNote
7.3.3
Subjects (2) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("col2hex2col")
APA
Rask, A., & Cohen, Y. (2026). col2hex2col: Convert Between Color Names and Hex Codes (Version 0.5.3) [Computer software]. https://doi.org/10.32614/CRAN.package.col2hex2col
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 col2hex2col version 0.5.3 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.5.3
    Time taken
    33 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.5.3
    Time taken
    26 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.5.3
    Time taken
    21 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.5.3
    Time taken
    20 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    55 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.5.3
    Time taken
    20 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    42 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    54 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    27 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    26 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.5.3
    Time taken
    12 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    35 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.5.3
    Time taken
    52 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (5)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
18 Jul 2026OK13000
16 Jul 2026Error12001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
356+27.1% up on the 30 days before, the better directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

11,136 of 26,530

CRAN

339 downloads in the last 30 days

Rank
11,136 of 26,530
Change
+32.4% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

12 downloads in the last 30 days

Rank
6,028 of 30,526
Change
+140% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

5 downloads in the last 30 days

Rank
10,893 of 29,212
Change
−73.7% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
0
Dependent packages
0
Suggested by
0
Optional extras (4)
Functions
5
Public exports
4
Lines of R code
530
Median complexity
8
Functions (5)
Size and composition

Lines by kind (1,301)

KindLinesShare
R code53041%
Tests42132%
Documentation35027%

Lines by language

LanguageLinesShare
R95173%
Rd35027%

Languages are counted from file extensions.

Files
25
R functions
5
Complexity
Median
8
Mean
6.4
Highest
9
Median lines per function
57
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
5
Calls
2
Unconnected
2
Groups
1
Growth (2 releases)
Total lines by release
1,141 on 21 Jan 20261,301 on 18 Feb 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
85.9%
Expressions run by tests
89%
Test cases
51
Exports named in tests
100%
Coverage by file (4)
Coverage run
Lines counted
135
Lines the tests ran
116
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
51
Lines of tests
421
Test lines per line of code
0.79
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
80%
Examples run in checks
100%
Other documentation
README
Yes, 455 words
Release notes file
Yes
Help pages
5
Lines of documentation
350

2 datasets, 0 can be loaded by name

AnttiRask / col2hex2col on github.com

Stars
3no change on 30 days ago
Forks
0
Open issues
1
Last commit
1 Jun 2026
Activity
Commits
69
Open pull requests
0
Tagged releases
11
Latest tagged release
v0.5.3, 17 Feb 2026
Issues closed in
–
Pull requests closed in
21 days (median)
Pull requests merged
17%
Created
29 Dec 2025
Licence file reads as
–
Development practices (6)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourcepkgdown
GitHub Pages site last deployed 2026-03-14
The repository has a site deploy workflow
Reproducibility and dev environmentdata-raw/

Method, repository practices

Across AnttiRask

Claude Codeat least 38 crediting itClaude CodeFirst seen 29 Dec 2025at least 38 crediting it
Claude Opus 4.61MClaude Opus 4.61M context window14 Mar 20261 commit
Claude Opus 4.6Claude Opus 4.67 Feb 2026 to 17 Feb 20264 commits
Claude Opus 4.5Claude Opus 4.517 Jan 2026 to 1 Feb 202617 commits
Claude Sonnet 4.5Claude Sonnet 4.53 Jan 2026 to 17 Feb 202616 commits

Tools

ToolFirst seenFoundCommits crediting it
Claude Code29 Dec 2025Seen in the repositoryCLAUDE.mdNamed in .Rbuildignore.claudeCLAUDE.mdNamed in .gitignore.claude38 at least
  • Seen in the repository
  • Named in .Rbuildignore
  • Named in .gitignore

Models

ModelContext windowCommitsFirst commitLast commitCredit lines of
Claude Opus 4.61M114 Mar 202614 Mar 2026Claude Code
Claude Opus 4.647 Feb 202617 Feb 2026Claude Code
Claude Opus 4.51717 Jan 20261 Feb 2026Claude Code
Claude Sonnet 4.5163 Jan 202617 Feb 2026Claude Code

Across AnttiRask

R releases
  • On CRAN
  • Release
VersionReleasedR
0.5.3 current18 Feb 20264.5.2
0.3.121 Jan 20264.5.2
Release notes (0.5.3)

Administrative

  • Added LICENSE.md file so GitHub correctly displays the MIT license
  • Updated LICENSE year to 2026
  • Added copyright holder ([cph]) role to Authors@R in DESCRIPTION