Skip to content

colorfast

1.0.1

Fast Conversion of R Colors to Color Component Values and Native Packed Integer Format

4packages depend
4.3Kdownloads / year
85.1%test coverage
13/13checks pass

Overview

About
Maintained by Mike ChengFirst published 2024-12-162 releasesCRAN page ↗GitHub ↗

Color values in R are often represented as strings of hexadecimal colors or named colors. This package offers fast conversion of these color representations to either an array of red/green/blue/alpha values or to the packed integer format used in native raster objects. Functions for conversion are also exported at the 'C' level for use in other packages. This fast conversion of colors is implemented using an order-preserving minimal perfect hash derived from Majewski et al (1996) "A Family of Perfect Hashing Methods" doi:10.1093/comjnl/39.6.547.

Install

Health

CRAN checks
13OK
Slowest check: 2.1 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 2.65
85.1%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

4.3K
CRAN downloads in the past year
Rank #8,255 · ~12/day · ~355/mo
Daily download trend is not available in this view yet.
30130 days
1.1K90 days
4.3K1 year
Compare downloads with other packages →
Also on449 r2u13 autocran

Repository

Repository
10Stars
0Forks
0Open issues
0Open PRs
0Releases
20Commits
1Contributors
20 commits · Last activity 2025-02-17

Stars over time

2025-06-24 · 102026-07-07 · 10

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/coolbutuseless/colorfast on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Dev Container
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

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

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

2 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.0.1Latest
    2025-01-13 · current release · diff ↗
  • 1.0.0
    2024-12-16
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-12-16
Total releases
2 / 2 yrs
License
MIT + file LICENSE OSI
Download size
38 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("colorfast")
Cheng, M. (2025). colorfast: Fast Conversion of R Colors to Color Component Values and Native Packed Integer Format (Version 1.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.colorfast

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 colorfast version 1.0.1 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, 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