Running ‘testthat.R’ [1s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(binst)
  > 
  > test_check("binst")
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 16 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_earth.R:4:3): using earth ───────────────────────────────────────
  Error in `create_earthbreaks(x, y, control = control)`: Please install earth: install.packages('earth')
  Backtrace:
      ▆
   1. └─binst::create_breaks(...) at test_earth.R:4:2
   2.   └─binst::create_earthbreaks(x, y, control = control)
  ── Error (test_earth.R:9:3): using earth with controls ─────────────────────────
  Error in `create_earthbreaks(x, y, control = control)`: Please install earth: install.packages('earth')
  Backtrace:
      ▆
   1. └─binst::create_breaks(...) at test_earth.R:9:2
   2.   └─binst::create_earthbreaks(x, y, control = control)
  ── Error (test_jenks.R:4:3): jenks breaks ──────────────────────────────────────
  Error in `create_jenksbreaks(x, control = control)`: Please install BAMMtools: install.packages('BAMMtools')
  Backtrace:
      ▆
   1. └─binst::create_breaks(1:10, method = "jenks") at test_jenks.R:4:2
   2.   └─binst::create_jenksbreaks(x, control = control)
  ── Error (test_jenks.R:11:3): jenks breaks for iris ────────────────────────────
  Error in `create_jenksbreaks(x, control = control)`: Please install BAMMtools: install.packages('BAMMtools')
  Backtrace:
      ▆
   1. └─binst::create_breaks(iris$Sepal.Length, method = "jenks") at test_jenks.R:11:2
   2.   └─binst::create_jenksbreaks(x, control = control)
  ── Error (test_jenks.R:17:3): jenks breaks has control params correctly passed ──
  Error in `create_jenksbreaks(x, control = control)`: Please install BAMMtools: install.packages('BAMMtools')
  Backtrace:
      ▆
   1. └─binst::create_breaks(1:10, method = "jenks", control = list(k = 3)) at test_jenks.R:17:2
   2.   └─binst::create_jenksbreaks(x, control = control)
  ── Error (test_jenks.R:22:3): jenks breaks has control params correctly passed when k is not in it ──
  Error in `create_jenksbreaks(x, control = control)`: Please install BAMMtools: install.packages('BAMMtools')
  Backtrace:
      ▆
   1. └─binst::create_breaks(1:10, method = "jenks", control = list(subset = NULL)) at test_jenks.R:22:2
   2.   └─binst::create_jenksbreaks(x, control = control)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 16 ]
  Error: Test failures
  Execution halted