Running ‘testthat.R’ [41s/51s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bnclassify)
  > 
  > test_check("bnclassify")
  -1.54485 -1.50696 -1.31785 -1.2128 -1.4612 -1.20742 -1.26966 -1.67055 -0.440312 -1.11241 -4.29046 -4.29046 -0.545227 -0.93827 -4.23411 -4.23411
  [ FAIL 2 | WARN 3 | SKIP 39 | PASS 587 ]
  
  ══ Skipped tests (39) ══════════════════════════════════════════════════════════
  • Local rdata file (1): 'test-infer-anb-cpp.R:48:2'
  • On CRAN (17): 'test-cv.R:65:3', 'test-cv.R:75:3', 'test-cv.R:85:3',
    'test-cv.R:107:3', 'test-cv.R:117:3', 'test-cv.R:188:3',
    'test-learn-params-wanbia.r:20:3', 'test-learn-params-wanbia.r:29:3',
    'test-learn-params-wanbia.r:39:3', 'test-learn-struct.R:20:3',
    'test-learn-struct.R:32:3', 'test-learn-struct.R:50:3',
    'test-learn-struct.R:59:3', 'test-learn-struct.R:70:3',
    'test-wrap-mlr.R:4:3', 'test-wrap-mlr.R:19:3', 'test-wrap-mlr.R:41:3'
  • empty test (20): 'test-anb-families.R:21:1', 'test-basic-assert.R:3:1',
    'test-cpp-table.R:18:1', 'test-cpp-table.R:28:1', 'test-cpp-table.R:39:1',
    'test-cpp-table.R:44:1', 'test-cpp-table.R:62:1', 'test-cv.R:148:1',
    'test-infer-anb-cpp.R:31:1', 'test-infer-anb.R:37:1', 'test-infer.R:16:1',
    'test-infer.R:61:1', 'test-infer.R:105:1', 'test-learn-aode.r:50:1',
    'test-learn-aode.r:82:1', 'test-learn-params-wanbia.r:12:1',
    'test-predict.R:3:1', 'test-update.R:61:1', 'test-wrap-grain.R:3:1',
    'test-wrap-grain.R:14:1'
  • gRain has removed the predict function (1): 'test-wrap-grain.R:28:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-anb-dag.R:38:3'): Accessors ────────────────────────────────────
  Error in `graphNEL2_graph_internal(dg)`: inherits(x, "graphNEL") is not TRUE
  Backtrace:
      ▆
   1. └─bnclassify:::random_aug_nb_dag(...) at test-anb-dag.R:38:2
   2.   └─bnclassify:::graphNEL2_graph_internal(dg) at tests/testthat/helper-common.R:44:2
   3.     └─base::stopifnot(inherits(x, "graphNEL"))
  ── Error ('test-dag.R:8:3'): Condition on ──────────────────────────────────────
  Error in `graphNEL2_graph_internal(g)`: inherits(x, "graphNEL") is not TRUE
  Backtrace:
      ▆
   1. └─bnclassify:::graphNEL2_graph_internal(g) at test-dag.R:8:2
   2.   └─base::stopifnot(inherits(x, "graphNEL"))
  
  [ FAIL 2 | WARN 3 | SKIP 39 | PASS 587 ]
  Error: Test failures
  Execution halted