Skip to content

legocolors

0.4.0

Official Lego Color Palettes

0packages depend
2.4Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Matthew LeonawiczFirst published 2019-03-244 releasesCRAN page ↗GitHub ↗

Provides a dataset containing several color naming conventions established by multiple sources, along with associated color metadata. The package also provides related helper functions for mapping among the different Lego color naming conventions and between Lego colors, hex colors, and 'R' color names, making it easy to convert any color palette to one based on existing Lego colors while keeping as close to the original color palette as possible. The functions use nearest color matching based on Euclidean distance in RGB space. Naming conventions for color mapping include those from 'BrickLink' (https://www.bricklink.com), 'The Lego Group' (https://www.lego.com), 'LDraw' (https://www.ldraw.org/), and 'Peeron' (http://www.peeron.com/).

Install

Health

CRAN checks
13OK
Slowest check: 49 s · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.19
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
Yes
README
0
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.4K
CRAN downloads in the past year
Rank #20,666 · ~7/day · ~199/mo
Daily download trend is not available in this view yet.
24030 days
57990 days
2.4K1 year
Compare downloads with other packages →
Also on94 r2u8 autocran

Repository

Repository
8Stars
0Forks
1Open issues
0Open PRs
4Releases
r-packagelegocolor-palettes

Stars over time

2024-11-15 · 72026-07-07 · 8

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 250 (55%)Rd 205 (45%)
Code characteristics
Cyclomatic complexity
2.0 median / 6 max
Test cases
3 / 0.19 per code line
Documented parameters
100%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

8 7 exported

Complexity

2.5 avg / 6 max

Call network

8 nodes / 5 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Release timeline

4 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
  • 0.4.0Latest
    2024-09-12 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.1
    2021-02-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2.0
    2019-04-28 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.2
    2019-03-24
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-03-24
Total releases
4 / 7 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
5.3 KB / 2 files
Download size
73 KB
Installed size
not tracked yet
With dependencies
not tracked yet