Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(signs)
  > 
  > test_check("signs")
  ── 1. Failure: the basics work (@test-signs-format.R#7)  ───────────────────────
  signs_format()(x) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 2. Failure: the basics work (@test-signs-format.R#15)  ──────────────────────
  signs_format(add_plusses = TRUE)(x) not equal to c("−1", "0", "+1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "+1.0"
  y[3]: "+1"
  
  ── 3. Failure: the basics work (@test-signs-format.R#19)  ──────────────────────
  signs_format(label_at_zero = "blank")(x) not equal to c("−1", "", "1").
  2/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 4. Failure: the basics work (@test-signs-format.R#23)  ──────────────────────
  signs_format(label_at_zero = "symbol")(x) not equal to c("−1", "±0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "±0.0"
  y[2]: "±0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 5. Failure: function still works when options aren't set (@test-signs-format.
  signs_format(format = NULL)(x) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 6. Failure: function still works when options aren't set (@test-signs-format.
  signs_format(add_plusses = NULL)(x) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 7. Failure: function still works when options aren't set (@test-signs-format.
  signs_format(trim_leading_zeros = NULL)(x) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 8. Failure: function still works when options aren't set (@test-signs-format.
  signs_format(label_at_zero = NULL)(x) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  `format` should be a function that returns a character vector, such as `as.character` or `scales::number`. Consider setting a default with `options(signs.format=your_function)`.`format` should be a function that returns a character vector, such as `as.character` or `scales::number`. Consider setting a default with `options(signs.format=your_function)`.── 9. Failure: formatted as zero counts as zero (@test-signs-format.R#109)  ────
  signs_format(scale = 0.1, label_at_zero = "none")(x) not equal to c("0", "0", "0").
  3/3 mismatches
  x[1]: "−0.10"
  y[1]: "0"
  
  x[2]: "0.00"
  y[2]: "0"
  
  x[3]: "0.10"
  y[3]: "0"
  
  ── 10. Failure: formatted as zero counts as zero (@test-signs-format.R#113)  ───
  signs_format(scale = 0.1, label_at_zero = "blank")(x) not equal to c("", "", "").
  2/3 mismatches
  x[1]: "−0.10"
  y[1]: ""
  
  x[3]: "0.10"
  y[3]: ""
  
  ── 11. Failure: formatted as zero counts as zero (@test-signs-format.R#117)  ───
  signs_format(scale = 0.1, label_at_zero = "symbol")(x) not equal to c("±0", "±0", "±0").
  3/3 mismatches
  x[1]: "−0.10"
  y[1]: "±0"
  
  x[2]: "±0.00"
  y[2]: "±0"
  
  x[3]: "0.10"
  y[3]: "±0"
  
  ── 12. Failure: janky scientific notation works (@test-signs-format.R#145)  ────
  signs_format(suffix = "e+03", label_at_zero = "none")(x) not equal to c("−1e+03", "0e+03", "1e+03").
  3/3 mismatches
  x[1]: "−1.0e+03"
  y[1]: "−1e+03"
  
  x[2]: "0.0e+03"
  y[2]: "0e+03"
  
  x[3]: "1.0e+03"
  y[3]: "1e+03"
  
  ── 13. Failure: janky scientific notation works (@test-signs-format.R#149)  ────
  signs_format(suffix = "e+03", label_at_zero = "blank")(x) not equal to c("−1e+03", "", "1e+03").
  2/3 mismatches
  x[1]: "−1.0e+03"
  y[1]: "−1e+03"
  
  x[3]: "1.0e+03"
  y[3]: "1e+03"
  
  ── 14. Failure: janky scientific notation works (@test-signs-format.R#153)  ────
  signs_format(suffix = "e+03", label_at_zero = "symbol")(x) not equal to c("−1e+03", "±0e+03", "1e+03").
  3/3 mismatches
  x[1]: "−1.0e+03"
  y[1]: "−1e+03"
  
  x[2]: "±0.0e+03"
  y[2]: "±0e+03"
  
  x[3]: "1.0e+03"
  y[3]: "1e+03"
  
  ── 15. Failure: the basics work (@test-signs.R#7)  ─────────────────────────────
  signs(x) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 16. Failure: the basics work (@test-signs.R#15)  ────────────────────────────
  signs(x, add_plusses = TRUE) not equal to c("−1", "0", "+1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "+1.0"
  y[3]: "+1"
  
  ── 17. Failure: the basics work (@test-signs.R#19)  ────────────────────────────
  signs(x, label_at_zero = "blank") not equal to c("−1", "", "1").
  2/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 18. Failure: the basics work (@test-signs.R#23)  ────────────────────────────
  signs(x, label_at_zero = "symbol") not equal to c("−1", "±0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "±0.0"
  y[2]: "±0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 19. Failure: function still works when options aren't set (@test-signs.R#37) 
  signs(x, format = NULL) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 20. Failure: function still works when options aren't set (@test-signs.R#41) 
  signs(x, add_plusses = NULL) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 21. Failure: function still works when options aren't set (@test-signs.R#45) 
  signs(x, trim_leading_zeros = NULL) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  ── 22. Failure: function still works when options aren't set (@test-signs.R#49) 
  signs(x, label_at_zero = NULL) not equal to c("−1", "0", "1").
  3/3 mismatches
  x[1]: "−1.0"
  y[1]: "−1"
  
  x[2]: "0.0"
  y[2]: "0"
  
  x[3]: "1.0"
  y[3]: "1"
  
  `format` should be a function that returns a character vector, such as `as.character` or `scales::number`. Consider setting a default with `options(signs.format=your_function)`.`format` should be a function that returns a character vector, such as `as.character` or `scales::number`. Consider setting a default with `options(signs.format=your_function)`.── 23. Failure: formatted as zero counts as zero (@test-signs.R#113)  ──────────
  signs(x, scale = 0.1, label_at_zero = "none") not equal to c("0", "0", "0").
  3/3 mismatches
  x[1]: "−0.10"
  y[1]: "0"
  
  x[2]: "0.00"
  y[2]: "0"
  
  x[3]: "0.10"
  y[3]: "0"
  
  ── 24. Failure: formatted as zero counts as zero (@test-signs.R#117)  ──────────
  signs(x, scale = 0.1, label_at_zero = "blank") not equal to c("", "", "").
  2/3 mismatches
  x[1]: "−0.10"
  y[1]: ""
  
  x[3]: "0.10"
  y[3]: ""
  
  ── 25. Failure: formatted as zero counts as zero (@test-signs.R#121)  ──────────
  signs(x, scale = 0.1, label_at_zero = "symbol") not equal to c("±0", "±0", "±0").
  3/3 mismatches
  x[1]: "−0.10"
  y[1]: "±0"
  
  x[2]: "±0.00"
  y[2]: "±0"
  
  x[3]: "0.10"
  y[3]: "±0"
  
  ── 26. Failure: janky scientific notation works (@test-signs.R#145)  ───────────
  signs(x, suffix = "e+03", label_at_zero = "none") not equal to c("−1e+03", "0e+03", "1e+03").
  3/3 mismatches
  x[1]: "−1.0e+03"
  y[1]: "−1e+03"
  
  x[2]: "0.0e+03"
  y[2]: "0e+03"
  
  x[3]: "1.0e+03"
  y[3]: "1e+03"
  
  ── 27. Failure: janky scientific notation works (@test-signs.R#149)  ───────────
  signs(x, suffix = "e+03", label_at_zero = "blank") not equal to c("−1e+03", "", "1e+03").
  2/3 mismatches
  x[1]: "−1.0e+03"
  y[1]: "−1e+03"
  
  x[3]: "1.0e+03"
  y[3]: "1e+03"
  
  ── 28. Failure: janky scientific notation works (@test-signs.R#153)  ───────────
  signs(x, suffix = "e+03", label_at_zero = "symbol") not equal to c("−1e+03", "±0e+03", "1e+03").
  3/3 mismatches
  x[1]: "−1.0e+03"
  y[1]: "−1e+03"
  
  x[2]: "±0.0e+03"
  y[2]: "±0e+03"
  
  x[3]: "1.0e+03"
  y[3]: "1e+03"
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 27 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 28 ]
  1. Failure: the basics work (@test-signs-format.R#7) 
  2. Failure: the basics work (@test-signs-format.R#15) 
  3. Failure: the basics work (@test-signs-format.R#19) 
  4. Failure: the basics work (@test-signs-format.R#23) 
  5. Failure: function still works when options aren't set (@test-signs-format.R#37) 
  6. Failure: function still works when options aren't set (@test-signs-format.R#41) 
  7. Failure: function still works when options aren't set (@test-signs-format.R#45) 
  8. Failure: function still works when options aren't set (@test-signs-format.R#49) 
  9. Failure: formatted as zero counts as zero (@test-signs-format.R#109) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted