Running ‘test-all.R’ [7s/7s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("zonator")
  Loading required package: zonator
  ── 1. Error: performance levels are reported right for individual features (@tes
  'tolerance' should be numeric
  1: expect_equivalent(levels.all, performance(test.results, pr.lost = breaks), "Method performance doesn't return levels right") at testthat/test-04-zresults.R:193
  2: compare(act$val, exp$val, ..., check.attributes = FALSE)
  3: compare.default(act$val, exp$val, ..., check.attributes = FALSE)
  4: all.equal(x, y, ...)
  5: all.equal.default(x, y, ...)
  6: all.equal.list(target, current, ...)
  7: all.equal(target[[i]], current[[i]], check.attributes = check.attributes, use.names = use.names, 
         ...)
  8: all.equal.numeric(target[[i]], current[[i]], check.attributes = check.attributes, 
         use.names = use.names, ...)
  9: stop("'tolerance' should be numeric")
  
  ── 2. Error: performance levels are reported right for groups (@test-04-zresults
  'tolerance' should be numeric
  1: expect_equivalent(levels.all, performance(test.results, pr.lost = breaks, groups = TRUE), 
         "Method performance doesn't return group levels right") at testthat/test-04-zresults.R:231
  2: compare(act$val, exp$val, ..., check.attributes = FALSE)
  3: compare.default(act$val, exp$val, ..., check.attributes = FALSE)
  4: all.equal(x, y, ...)
  5: all.equal.default(x, y, ...)
  6: all.equal.list(target, current, ...)
  7: all.equal(target[[i]], current[[i]], check.attributes = check.attributes, use.names = use.names, 
         ...)
  8: all.equal.numeric(target[[i]], current[[i]], check.attributes = check.attributes, 
         use.names = use.names, ...)
  9: stop("'tolerance' should be numeric")
  
  ── 3. Error: Retrieving variants works (@test-06-zproject.R#38)  ───────────────
  'tolerance' should be numeric
  1: expect_equivalent(nvariants(test.project), 6, paste("Number of variants reported incorrectly")) at testthat/test-06-zproject.R:38
  2: compare(act$val, exp$val, ..., check.attributes = FALSE)
  3: compare.numeric(act$val, exp$val, ..., check.attributes = FALSE)
  4: all.equal(x, y, tolerance = tolerance, check.attributes = check.attributes, ...)
  5: all.equal.numeric(x, y, tolerance = tolerance, check.attributes = check.attributes, 
         ...)
  6: stop("'tolerance' should be numeric")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 157 SKIPPED: 1 FAILED: 3
  1. Error: performance levels are reported right for individual features (@test-04-zresults.R#193) 
  2. Error: performance levels are reported right for groups (@test-04-zresults.R#231) 
  3. Error: Retrieving variants works (@test-06-zproject.R#38) 
  
  Error: testthat unit tests failed
  Execution halted