Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(neighbr)
  > 
  > test_check("neighbr")
  ── 1. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#
  fit$train_set$feat1 not equal to c(0, 0, 1, 1, 1, 0, 0, 0).
  3/8 mismatches (average diff: 1)
  [3] 0 - 1 == -1
  [5] 0 - 1 == -1
  [6] 1 - 0 ==  1
  
  ── 2. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#
  fit$train_set$feat2 not equal to c(0, 0, 1, 1, 1, 1, 1, 0).
  6/8 mismatches (average diff: 1)
  [1] 1 - 0 ==  1
  [3] 0 - 1 == -1
  [5] 0 - 1 == -1
  [6] 0 - 1 == -1
  [7] 0 - 1 == -1
  [8] 1 - 0 ==  1
  
  ── 3. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#
  fit$train_set$feat3 not equal to c(0, 1, 1, 0, 1, 1, 1, 1).
  5/8 mismatches (average diff: 1)
  [2] 0 - 1 == -1
  [4] 1 - 0 ==  1
  [5] 0 - 1 == -1
  [6] 0 - 1 == -1
  [7] 0 - 1 == -1
  
  ── 4. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#
  fit$test_set_scores$categorical_target not equal to "orange".
  1/1 mismatches
  x[1]: "green"
  y[1]: "orange"
  
  ── 5. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#
  fit$test_set_scores$continuous_target not equal to 0.2333301.
  1/1 mismatches
  [1] 0.2 - 0.233 == -0.0333
  
  ── 6. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#
  fit$test_set_scores$neighbor1 not equal to 2.
  1/1 mismatches
  [1] 1 - 2 == -1
  
  ── 7. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#
  fit$test_set_scores$neighbor2 not equal to 3.
  1/1 mismatches
  [1] 8 - 3 == 5
  
  ── 8. Failure: knn with jaccard object contains expected items - 2 (@test_knn.R#
  fit$test_set_scores$continuous_target not equal to 0.2317768.
  1/1 mismatches
  [1] 0.352 - 0.232 == 0.12
  
  ── 9. Failure: knn with jaccard object contains expected items - 2 (@test_knn.R#
  fit$test_set_scores$neighbor1 not equal to 1.
  1/1 mismatches
  [1] 2 - 1 == 1
  
  ── 10. Failure: knn with jaccard object contains expected items - 2 (@test_knn.R
  fit$test_set_scores$neighbor2 not equal to 3.
  1/1 mismatches
  [1] 8 - 3 == 5
  
  ── 11. Failure: knn with jaccard object contains expected items - 2 (@test_knn.R
  fit$test_set_scores$neighbor3 not equal to 6.
  1/1 mismatches
  [1] 7 - 6 == 1
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 82 SKIPPED: 0 FAILED: 11
  1. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#43) 
  2. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#44) 
  3. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#45) 
  4. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#46) 
  5. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#47) 
  6. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#48) 
  7. Failure: knn with jaccard object contains expected items - 1 (@test_knn.R#49) 
  8. Failure: knn with jaccard object contains expected items - 2 (@test_knn.R#81) 
  9. Failure: knn with jaccard object contains expected items - 2 (@test_knn.R#82) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted