Package check result: ERROR Check: CRAN incoming feasibility, Result: NOTE Maintainer: ‘Dylan Beaudette ’ Suggests or Enhances not in mainstream repositories: sharpshootR Check: examples, Result: ERROR Running examples in ‘aqp-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: colorContrast > ### Title: Metrics of Contrast Suitable for Comparing Soil Colors > ### Aliases: colorContrast > ### Keywords: manip > > ### ** Examples > > > # keep examples from using more than 2 cores > data.table::setDTthreads(Sys.getenv("OMP_THREAD_LIMIT", unset = 2)) > > # two sets of colors to compare > m1 <- c('10YR 6/3', '7.5YR 3/3', '10YR 2/2', '7.5YR 3/4') > m2 <- c('5YR 3/4', '7.5YR 4/4', '2.5YR 2/2', '7.5YR 6/3') > > # contrast metrics > colorContrast(m1, m2) m1 m2 dH dV dC dE00 cc 1 10YR 6/3 5YR 3/4 2 3 1 31.286374 Prominent 2 7.5YR 3/3 7.5YR 4/4 0 1 1 9.657423 Faint 3 10YR 2/2 2.5YR 2/2 3 0 0 6.814101 Faint 4 7.5YR 3/4 7.5YR 6/3 0 3 1 30.261643 Distinct > > # adjacent chips > colorContrast('10YR 3/3', '10YR 3/4') m1 m2 dH dV dC dE00 cc 1 10YR 3/3 10YR 3/4 0 0 1 3.151168 Faint > colorContrast('10YR 3/3', '7.5YR 3/3') m1 m2 dH dV dC dE00 cc 1 10YR 3/3 7.5YR 3/3 1 0 0 3.313277 Faint > > # highly contrasting colors > # http://colour.granjow.net/fabercastell-polychromos.html > colorContrastPlot('10B 4/13', '10YR 10/15', + labels = c('helioblue-reddish', 'light cadmium yellow') + ) Error in loadNamespace(x) : there is no package called ‘colorspace’ Calls: colorContrastPlot ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Check: tests, Result: ERROR Running ‘testthat.R’ [24s/23s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(aqp) This is aqp 2.2 > > # limit all tests involving data.table > # to 2 threads for CRAN compliance > data.table::setDTthreads(Sys.getenv("OMP_THREAD_LIMIT", unset = 2)) > > # Sys.setenv("_SP_EVOLUTION_STATUS_"=2) > test_check("aqp") Failed with error: 'there is no package called 'sf'' Failed with error: 'there is no package called 'sf'' [ FAIL 2 | WARN 0 | SKIP 23 | PASS 1343 ] ══ Skipped tests (23) ══════════════════════════════════════════════════════════ • On CRAN (4): 'test-DT-tbl.R:6:3', 'test-color-signature.R:64:3', 'test-fix-find-overlap.R:40:3', 'test-fix-find-overlap.R:89:3' • {Gmedian} is not installed (5): 'test-L1_profiles.R:7:3', 'test-SoilProfileCollection-metadata.R:48:3', 'test-colorQuantiles.R:8:3', 'test-colorQuantiles.R:23:3', 'test-colorQuantiles.R:37:3' • {Hmisc} is not installed (2): 'test-slab.R:90:3', 'test-textureTriangleSummary.R:11:3' • {compositions} is not installed (1): 'test-bootstrapSoilTexture.R:11:3' • {gower} is not installed (8): 'test-aggregateColor.R:14:3', 'test-aggregateColor.R:40:3', 'test-aggregateColor.R:48:3', 'test-aggregateColor.R:78:3', 'test-mixMunsell.R:42:3', 'test-mixMunsell.R:57:3', 'test-mixMunsell.R:107:3', 'test-simulateColor.R:12:3' • {mpspline2} is not installed (2): 'test-spc2mpspline.R:2:3', 'test-spc2mpspline.R:51:3' • {sf} is not installed (1): 'test-SPC-objects.R:205:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-DT-tbl.R:104:5'): basic functionality of tbl_df ──────────────── Error: unable to find an inherited method for function 'depths<-' for signature 'object = "NULL"' Backtrace: ▆ 1. ├─testthat::expect_message(depths(test) <- id ~ top + bottom, c("converting profile IDs from integer to character")) at test-DT-tbl.R:104:5 2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─aqp::`depths<-`(`*tmp*`, value = ``) 7. └─methods (local) ``(``, ``, ``) ── Error ('test-genhz.R:95:3'): evalGenHZ works as expected ──────────────────── Error: package `MASS` is required Backtrace: ▆ 1. └─aqp::evalGenHZ(sp3, genhz = "genhz", vars = "clay") at test-genhz.R:95:3 [ FAIL 2 | WARN 0 | SKIP 23 | PASS 1343 ] Error: Test failures Execution halted