Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(GridOnClusters)
  > 
  > test_check("GridOnClusters")
  -- 1. Failure: Testing discretize.jointly (@test-GridOnClusters.R#75)  ---------
  length(unique(discr[, 1])) not equivalent to 7.
  1/1 mismatches
  [1] 8 - 7 == 1
  
  -- 2. Failure: Testing discretize.jointly (@test-GridOnClusters.R#76)  ---------
  length(unique(discr[, 2])) not equivalent to 6.
  1/1 mismatches
  [1] 8 - 6 == 2
  
  -- 3. Failure: Testing discretize.jointly (@test-GridOnClusters.R#77)  ---------
  length(unique(discr[, 3])) not equivalent to 5.
  1/1 mismatches
  [1] 6 - 5 == 1
  
  -- 4. Failure: Testing discretize.jointly (@test-GridOnClusters.R#80)  ---------
  table(discr[, 1]) not equivalent to as.table(c(6, 2, 2, 12, 13, 9, 6)).
  Numeric: lengths (8, 7) differ
  
  -- 5. Failure: Testing discretize.jointly (@test-GridOnClusters.R#81)  ---------
  table(discr[, 2]) not equivalent to as.table(c(6, 2, 2, 26, 8, 6)).
  Numeric: lengths (8, 6) differ
  
  -- 6. Failure: Testing discretize.jointly (@test-GridOnClusters.R#82)  ---------
  table(discr[, 3]) not equivalent to as.table(c(2, 37, 7, 3, 1)).
  Numeric: lengths (6, 5) differ
  
  -- 7. Failure: Testing discretize.jointly (@test-GridOnClusters.R#86)  ---------
  `dim12` not equivalent to as.table(...).
  Numeric: lengths (64, 42) differ
  
  -- 8. Failure: Testing discretize.jointly (@test-GridOnClusters.R#96)  ---------
  round(stat12$statistic, digits = 2) not equivalent to 190.93.
  1/1 mismatches
  [1] 324 - 191 == 134
  
  -- 9. Failure: Testing discretize.jointly (@test-GridOnClusters.R#100)  --------
  `dim13` not equivalent to as.table(...).
  Numeric: lengths (48, 35) differ
  
  -- 10. Failure: Testing discretize.jointly (@test-GridOnClusters.R#110)  -------
  round(stat13$statistic, digits = 2) not equivalent to 43.55.
  1/1 mismatches
  [1] 58.7 - 43.5 == 15.2
  
  -- 11. Failure: Testing discretize.jointly (@test-GridOnClusters.R#111)  -------
  signif(stat13$p.value, digits = 3) not equivalent to 0.0086.
  1/1 mismatches
  [1] 0.00721 - 0.0086 == -0.00139
  
  -- 12. Failure: Testing discretize.jointly (@test-GridOnClusters.R#184)  -------
  length(unique(discr[, 1])) not equivalent to 7.
  1/1 mismatches
  [1] 6 - 7 == -1
  
  -- 13. Failure: Testing discretize.jointly (@test-GridOnClusters.R#185)  -------
  length(unique(discr[, 2])) not equivalent to 3.
  1/1 mismatches
  [1] 2 - 3 == -1
  
  -- 14. Failure: Testing discretize.jointly (@test-GridOnClusters.R#186)  -------
  length(unique(discr[, 3])) not equivalent to 3.
  1/1 mismatches
  [1] 2 - 3 == -1
  
  -- 15. Failure: Testing discretize.jointly (@test-GridOnClusters.R#189)  -------
  table(discr[, 1]) not equivalent to as.table(c(19, 14, 25, 13, 15, 12, 2)).
  Numeric: lengths (6, 7) differ
  
  -- 16. Failure: Testing discretize.jointly (@test-GridOnClusters.R#190)  -------
  table(discr[, 2]) not equivalent to as.table(c(29, 39, 32)).
  Numeric: lengths (2, 3) differ
  
  -- 17. Failure: Testing discretize.jointly (@test-GridOnClusters.R#191)  -------
  table(discr[, 3]) not equivalent to as.table(c(56, 25, 19)).
  Numeric: lengths (2, 3) differ
  
  -- 18. Failure: Testing discretize.jointly (@test-GridOnClusters.R#195)  -------
  `dim12` not equivalent to as.table(...).
  Numeric: lengths (12, 21) differ
  
  -- 19. Failure: Testing discretize.jointly (@test-GridOnClusters.R#205)  -------
  round(stat12$statistic, digits = 2) not equivalent to 148.68.
  1/1 mismatches
  [1] 73.7 - 149 == -75
  
  -- 20. Failure: Testing discretize.jointly (@test-GridOnClusters.R#209)  -------
  `dim23` not equivalent to as.table(...).
  Numeric: lengths (4, 9) differ
  
  -- 21. Failure: Testing discretize.jointly (@test-GridOnClusters.R#215)  -------
  round(stat23$statistic, digits = 2) not equivalent to 91.09.
  1/1 mismatches
  [1] 0.15 - 91.1 == -90.9
  
  -- 22. Failure: Testing discretize.jointly (@test-GridOnClusters.R#216)  -------
  signif(stat23$p.value, digits = 3) not equivalent to 7.74e-19.
  1/1 mismatches
  [1] 0.697 - 7.74e-19 == 0.697
  
  == testthat results  ===========================================================
  [ OK: 41 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 22 ]
  1. Failure: Testing discretize.jointly (@test-GridOnClusters.R#75) 
  2. Failure: Testing discretize.jointly (@test-GridOnClusters.R#76) 
  3. Failure: Testing discretize.jointly (@test-GridOnClusters.R#77) 
  4. Failure: Testing discretize.jointly (@test-GridOnClusters.R#80) 
  5. Failure: Testing discretize.jointly (@test-GridOnClusters.R#81) 
  6. Failure: Testing discretize.jointly (@test-GridOnClusters.R#82) 
  7. Failure: Testing discretize.jointly (@test-GridOnClusters.R#86) 
  8. Failure: Testing discretize.jointly (@test-GridOnClusters.R#96) 
  9. Failure: Testing discretize.jointly (@test-GridOnClusters.R#100) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted