Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(shades)
  > 
  > test_check("shades")
  ── 1. Error: shade objects can be converted between spaces (@test-05-shade.R#18)
  rgb matrix must have 3 rows
  1: expect_equivalent(coords(warp("red", "HSV")), matrix(c(0, 1, 1), nrow = 1)) at testthat/test-05-shade.R:18
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: coords(warp("red", "HSV"))
  5: warp("red", "HSV")
  6: convertColor(attr(x, "coords"), .converters[[sourceSpace]], .converters[[targetSpace]])
  7: to$fromXYZ(xyz, to.ref.white)
  8: apply(color, 1L, converter, white)
  9: FUN(newX[, i], ...)
  10: drop(rgb2hsv(t(rgb), maxColorValue = 1))
  11: rgb2hsv(t(rgb), maxColorValue = 1)
  12: stop("rgb matrix must have 3 rows")
  
  ── 2. Error: colour properties can be extracted (@test-15-properties.R#4)  ─────
  rgb matrix must have 3 rows
  1: expect_equal(saturation("red"), 1) at testthat/test-15-properties.R:4
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: saturation("red")
  5: .replaceProperty(shades, values, "HSV", 2)
  6: .replaceProperty.default(shades, values, "HSV", 2)
  7: warp(shades, space)
  8: convertColor(attr(x, "coords"), .converters[[sourceSpace]], .converters[[targetSpace]])
  9: to$fromXYZ(xyz, to.ref.white)
  10: apply(color, 1L, converter, white)
  11: FUN(newX[, i], ...)
  12: drop(rgb2hsv(t(rgb), maxColorValue = 1))
  13: rgb2hsv(t(rgb), maxColorValue = 1)
  14: stop("rgb matrix must have 3 rows")
  
  ── 3. Error: colour properties can be manipulated (@test-15-properties.R#13)  ──
  rgb matrix must have 3 rows
  1: expect_equal(saturation("red", 0.5), shade("#FF8080"), hexonly = TRUE) at testthat/test-15-properties.R:13
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: saturation("red", 0.5)
  5: .replaceProperty(shades, values, "HSV", 2)
  6: .replaceProperty.default(shades, values, "HSV", 2)
  7: warp(shades, space)
  8: convertColor(attr(x, "coords"), .converters[[sourceSpace]], .converters[[targetSpace]])
  9: to$fromXYZ(xyz, to.ref.white)
  10: apply(color, 1L, converter, white)
  11: FUN(newX[, i], ...)
  12: drop(rgb2hsv(t(rgb), maxColorValue = 1))
  13: rgb2hsv(t(rgb), maxColorValue = 1)
  14: stop("rgb matrix must have 3 rows")
  
  ── 4. Error: manipulated colour matrices have the expected dimensions (@test-15-
  rgb matrix must have 3 rows
  1: expect_null(dim(brightness(shades, 0.5))) at testthat/test-15-properties.R:27
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: brightness(shades, 0.5)
  5: .replaceProperty(shades, values, "HSV", 3)
  6: .replaceProperty.default(shades, values, "HSV", 3)
  7: warp(shades, space)
  8: convertColor(attr(x, "coords"), .converters[[sourceSpace]], .converters[[targetSpace]])
  9: to$fromXYZ(xyz, to.ref.white)
  10: apply(color, 1L, converter, white)
  11: FUN(newX[, i], ...)
  12: drop(rgb2hsv(t(rgb), maxColorValue = 1))
  13: rgb2hsv(t(rgb), maxColorValue = 1)
  14: stop("rgb matrix must have 3 rows")
  
  ── 5. Error: shade objects can be mixed and complements calculated (@test-20-mix
  rgb matrix must have 3 rows
  1: expect_equal(complement("cyan", space = "HSV"), warp("red", "HSV")) at testthat/test-20-mixtures.R:5
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: complement("cyan", space = "HSV")
  5: hue(shades, delta(180))
  6: .replaceProperty(shades, values, "HSV", 1)
  7: .replaceProperty.default(shades, values, "HSV", 1)
  8: warp(shades, space)
  9: convertColor(attr(x, "coords"), .converters[[sourceSpace]], .converters[[targetSpace]])
  10: to$fromXYZ(xyz, to.ref.white)
  11: apply(color, 1L, converter, white)
  12: FUN(newX[, i], ...)
  13: drop(rgb2hsv(t(rgb), maxColorValue = 1))
  14: rgb2hsv(t(rgb), maxColorValue = 1)
  15: stop("rgb matrix must have 3 rows")
  
  ── 6. Error: the swatch function works (@test-35-swatch.R#7)  ──────────────────
  rgb matrix must have 3 rows
  1: expect_null(swatch(saturation(brightness(c("red", "green", "blue"), c(0.25, 0.75)), 
         c(0.25, 0.75)))) at testthat/test-35-swatch.R:7
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: swatch(saturation(brightness(c("red", "green", "blue"), c(0.25, 0.75)), c(0.25, 0.75)))
  5: shade(x)
  6: saturation(brightness(c("red", "green", "blue"), c(0.25, 0.75)), c(0.25, 0.75))
  7: .replaceProperty(shades, values, "HSV", 2)
  8: brightness(c("red", "green", "blue"), c(0.25, 0.75))
  9: .replaceProperty(shades, values, "HSV", 3)
  10: .replaceProperty.default(shades, values, "HSV", 3)
  11: warp(shades, space)
  12: convertColor(attr(x, "coords"), .converters[[sourceSpace]], .converters[[targetSpace]])
  13: to$fromXYZ(xyz, to.ref.white)
  14: apply(color, 1L, converter, white)
  15: FUN(newX[, i], ...)
  16: drop(rgb2hsv(t(rgb), maxColorValue = 1))
  17: rgb2hsv(t(rgb), maxColorValue = 1)
  18: stop("rgb matrix must have 3 rows")
  
  ── 7. Error: opacity can be obtained and manipulated (@test-40-alpha.R#6)  ─────
  rgb matrix must have 3 rows
  1: expect_equal(opacity(saturation("#FF000080", 0.5)), 128/255) at testthat/test-40-alpha.R:6
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: opacity(saturation("#FF000080", 0.5))
  5: saturation("#FF000080", 0.5)
  6: .replaceProperty(shades, values, "HSV", 2)
  7: .replaceProperty.default(shades, values, "HSV", 2)
  8: warp(shades, space)
  9: convertColor(attr(x, "coords"), .converters[[sourceSpace]], .converters[[targetSpace]])
  10: to$fromXYZ(xyz, to.ref.white)
  11: apply(color, 1L, converter, white)
  12: FUN(newX[, i], ...)
  13: drop(rgb2hsv(t(rgb), maxColorValue = 1))
  14: rgb2hsv(t(rgb), maxColorValue = 1)
  15: stop("rgb matrix must have 3 rows")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 43 SKIPPED: 0 FAILED: 7
  1. Error: shade objects can be converted between spaces (@test-05-shade.R#18) 
  2. Error: colour properties can be extracted (@test-15-properties.R#4) 
  3. Error: colour properties can be manipulated (@test-15-properties.R#13) 
  4. Error: manipulated colour matrices have the expected dimensions (@test-15-properties.R#27) 
  5. Error: shade objects can be mixed and complements calculated (@test-20-mixtures.R#5) 
  6. Error: the swatch function works (@test-35-swatch.R#7) 
  7. Error: opacity can be obtained and manipulated (@test-40-alpha.R#6) 
  
  Error: testthat unit tests failed
  Execution halted