Skip to content

earthtones

Derive a Color Palette from a Particular Location on Earth

v0.2.0 · Mar 31, 2025 · MIT + file LICENSE

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

CRAN

291

Last 30 days

16248th

738

Last 90 days

2.9K

Last year

Trend: +72.2% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

23

Last 90 days

98

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

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

13 OK
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
ERROR r-devel-linux-x86_64-debian-gcc

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
ERROR r-devel-windows-x86_64

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

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.

Loading call graph…

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

R 161 (60.1%)Tests 24 (9%)Docs 83 (31%)

API

Exported functions

1

Internal functions

2

Recent export changes

v0.1.0+1 get_earthtones

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

v0.1.0: 266 LOCv0.1.1: 162 LOCv0.2.0: 268 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies maptiles terra sf earthtones

Version History

4 tracked
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.1 diff Mar 30, 2025
updated 0.1.1 ← 0.1.0 diff Jan 12, 2019
new 0.1.0 Aug 31, 2016