Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(khroma)
  
  Attaching package: 'khroma'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  > 
  > test_check("khroma")
  [ FAIL 31 | WARN 0 | SKIP 22 | PASS 784 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (6)
  • ggraph cannot be loaded (16)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-colour.R:151:3): Scale builder ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. └─khroma::scale_edge_fill_picker(palette = "YlOrBr") at test-colour.R:151:2
   2.   ├─base::do.call(fun, args = list(...))
   3.   └─khroma::scale_edge_fill_YlOrBr()
   4.     └─khroma:::scale_continuous(...)
   5.       └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:4:3): broc ─────────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_broc(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:20:3): cork ────────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:20:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_cork(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:36:3): vik ─────────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:36:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_vik(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:52:3): lisbon ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:52:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_lisbon(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:68:3): tofino ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:68:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_tofino(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:84:3): berlin ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:84:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_berlin(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:100:3): roma ───────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:100:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_roma(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:116:3): bam ────────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:116:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_bam(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:132:3): vanimo ─────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-ggraph-crameri.R:132:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_vanimo(midpoint = 10)
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:149:3): batlow ─────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_batlow(), "ggproto") at test-ggraph-crameri.R:149:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_batlow()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:163:3): batlowW ────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_batlowW(), "ggproto") at test-ggraph-crameri.R:163:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_batlowW()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:177:3): batlowK ────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_batlowK(), "ggproto") at test-ggraph-crameri.R:177:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_batlowK()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:191:3): devon ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_devon(), "ggproto") at test-ggraph-crameri.R:191:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_devon()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:205:3): lajolla ────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_lajolla(), "ggproto") at test-ggraph-crameri.R:205:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_lajolla()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:219:3): bamako ─────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_bamako(), "ggproto") at test-ggraph-crameri.R:219:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_bamako()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:233:3): davos ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_davos(), "ggproto") at test-ggraph-crameri.R:233:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_davos()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:247:3): bilbao ─────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_bilbao(), "ggproto") at test-ggraph-crameri.R:247:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_bilbao()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:261:3): nuuk ───────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_nuuk(), "ggproto") at test-ggraph-crameri.R:261:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_nuuk()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:275:3): oslo ───────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_oslo(), "ggproto") at test-ggraph-crameri.R:275:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_oslo()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:289:3): grayC ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_grayC(), "ggproto") at test-ggraph-crameri.R:289:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_grayC()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:303:3): hawaii ─────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_hawaii(), "ggproto") at test-ggraph-crameri.R:303:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_hawaii()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:317:3): lapaz ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_lapaz(), "ggproto") at test-ggraph-crameri.R:317:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_lapaz()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:331:3): tokyo ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_tokyo(), "ggproto") at test-ggraph-crameri.R:331:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_tokyo()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:345:3): buda ───────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_buda(), "ggproto") at test-ggraph-crameri.R:345:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_buda()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:359:3): acton ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_acton(), "ggproto") at test-ggraph-crameri.R:359:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_acton()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:373:3): turku ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_turku(), "ggproto") at test-ggraph-crameri.R:373:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_turku()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-crameri.R:387:3): imola ──────────────────────────────────
  Error: Package ggraph needed for this function to work. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_imola(), "ggproto") at test-ggraph-crameri.R:387:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─khroma::scale_edge_colour_imola()
   5.   └─khroma:::scale_continuous(...)
   6.     └─khroma:::check_package("ggraph")
  ── Error (test-ggraph-science.R:3:3): Stratigraphic scales ─────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'ggraph'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_stratigraphy(), "ggproto") at test-ggraph-science.R:3:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─khroma::scale_edge_colour_stratigraphy()
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base withOneRestart(expr, restarts[[1L]])
   8.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-ggraph-science.R:23:3): Land scales ─────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'ggraph'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_land(), "ggproto") at test-ggraph-science.R:23:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─khroma::scale_edge_colour_land()
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base withOneRestart(expr, restarts[[1L]])
   8.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-ggraph-science.R:43:3): Soil scales ─────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'ggraph'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(scale_edge_colour_soil(), "ggproto") at test-ggraph-science.R:43:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─khroma::scale_edge_colour_soil()
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base withOneRestart(expr, restarts[[1L]])
   8.       └─base doWithOneRestart(return(expr), restart)
  
  [ FAIL 31 | WARN 0 | SKIP 22 | PASS 784 ]
  Deleting unused snapshots:
  • plot/scheme-muted-falsefalse.svg
  • plot/scheme-muted-falsetrue.svg
  • plot/scheme-muted-truefalse.svg
  Error: Test failures
  Execution halted