earthtones
Derive a Color Palette from a Particular Location on Earth
Description
Downloads a satellite image via ESRI and maptiles (these are originally from a variety of aerial photography sources), translates the image into a perceptually uniform color space, runs one of a few different clustering algorithms on the colors in the image searching for a user-supplied number of colors, and returns the resulting color palette.
Downloads
291
Last 30 days
16248th
738
Last 90 days
2.9K
Last year
Trend: +72.2% (30d vs prior 30d)
0
Last 30 days
23
Last 90 days
98
Last year
Trend: -100% (30d vs prior 30d)
8
Last 7 days
15
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 21, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 20, 2026
tests
Running ‘testthat.R’ [5s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(earthtones)
>
> test_check("earthtones")
Saving _problems/test-earth-5.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ]
...[truncated]...
└─rlang::eval_bare(expr, quo_get_env(quo))
4. └─earthtones::get_earthtones()
5. └─maptiles::get_tiles(...)
6. └─maptiles:::download_tiles(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ]
Error:
! Test failures.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
tests
Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(earthtones)
>
> test_check("earthtones")
Saving _problems/test-earth-5.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ]
...[truncated]...
ifelse(...)
10. ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
11. │ └─base::is.factor(x)
12. └─base::basename(x)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 2 ]
Error:
! Test failures.
Execution halted
Code & tests
Open call graph →Line coverage
–
Expression
–
Tests / Examples
–
Functions
3 1 exported
Complexity
6 avg / 9 max
Call network
3 nodes / 1 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Lowest coverage
Per-function coverage is not measured for this package yet.
Code
Structure
Lines of code
268
Files
12
Compiled share
0%
Has compiled src
No
Language breakdown
API
Exported functions
1
Internal functions
2
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
0.15
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
100%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
Yes
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
0%
Unsafe pattern score
0
Dep constraint coverage
0%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.1.0
System requirements
–
C++ standard
–
License
MIT + file LICENSE
License flags
SPDX valid, OSI approved
History
Versions
3
First release
2016-09-01
Latest release
2025-03-31
Avg cadence
1567 days
Cold removal rate
–
Dep drift
5
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.