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

229

Last 30 days

14165th

229

Last 90 days

229

Last year

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 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 details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
ERROR r-devel-linux-x86_64-debian-gcc

tests

  Running ‘testthat.R’ [5s/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 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-earth.R:5:3'): returns normal ──────────────────────────────────
  Error in `basename(x)`: a character vector argument expected
  Backtrace:
       ▆
    1. ├─testthat::expect_is(get_earthtones(), "palette") at test-earth.R:5:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─earthtones::get_earthtones()
    5.   └─maptiles::get_tiles(...)
    6.     └─maptiles:::compose_tiles(tile_grid, images)
    7.       ├─base::unique(tools::file_ext(images))
    8.       └─tools::file_ext(images)
    9.         ├─base::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
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
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

*


            

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

  Running ‘testthat.R’ [5s/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 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-earth.R:5:3'): returns normal ──────────────────────────────────
  Error in `basename(x)`: a character vector argument expected
  Backtrace:
     

Dependency Network

Dependencies Reverse dependencies maptiles terra sf earthtones

Version History

new 0.2.0 Mar 9, 2026