Running 'testthat.R' [36s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bnclassify)
  > 
  > test_check("bnclassify")
  -- 1. Error: nominal as grain (@test-anb-bn.R#17)  -----------------------------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
   1. testthat::expect_is(as_grain(tbn), "grain")
   4. bnclassify::as_grain(tbn)
   5. bnclassify:::compile_grain(params(x))
   6. gRain::grain.CPTspec
   7. base::getExportedValue(pkg, name)
  
  -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
  -- 2. Error: Incomplete data set (@test-infer.R#19)  ---------------------------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
   1. bnclassify:::compute_cp(x = t, voting)
   2. bnclassify:::compute_log_joint(x, dataset)
   4. bnclassify:::compute_log_joint_incomplete.bnc_bn(...)
   5. bnclassify::as_grain(x)
   6. bnclassify:::compile_grain(params(x))
   7. gRain::grain.CPTspec
   8. base::getExportedValue(pkg, name)
  
  -- 3. Error: All incomplete rows (@test-infer.R#63)  ---------------------------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
   1. bnclassify:::compute_log_joint_incomplete(a, vna)
   2. bnclassify:::compute_log_joint_incomplete.bnc_bn(a, vna)
   3. bnclassify::as_grain(x)
   4. bnclassify:::compile_grain(params(x))
   5. gRain::grain.CPTspec
   6. base::getExportedValue(pkg, name)
  
  -- 4. Error: log-likelihood with incomplete data (@test-infer.R#106)  ----------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
   1. bnclassify:::compute_ll(nb, cb)
   2. bnclassify:::compute_log_joint(x, dataset)
   4. bnclassify:::compute_log_joint_incomplete.bnc_bn(...)
   5. bnclassify::as_grain(x)
   6. bnclassify:::compile_grain(params(x))
   7. gRain::grain.CPTspec
   8. base::getExportedValue(pkg, name)
  
  -- 5. Error: incomplete data (@test-learn-aode.r#88)  --------------------------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
    1. stats::predict(a, vt, prob = TRUE)
    2. bnclassify:::predict.bnc_fit(a, vt, prob = TRUE)
    3. bnclassify:::compute_cp(x = object, dataset = newdata, ...)
    4. bnclassify:::compute_log_joint(x, dataset)
    6. bnclassify:::compute_log_joint_incomplete.bnc_aode(...)
    7. base::lapply(models(x), compute_log_joint_incomplete, dataset = dataset)
    9. bnclassify:::compute_log_joint_incomplete.bnc_bn(X[[i]], ...)
   10. bnclassify::as_grain(x)
   11. bnclassify:::compile_grain(params(x))
   12. gRain::grain.CPTspec
   13. base::getExportedValue(pkg, name)
  
  -- 6. Error: Maximum a posteriori (@test-predict.R#6)  -------------------------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
    1. stats::predict(h, voting, prob = TRUE)
    2. bnclassify:::predict.bnc_fit(h, voting, prob = TRUE)
    3. bnclassify:::compute_cp(x = object, dataset = newdata, ...)
    4. bnclassify:::compute_log_joint(x, dataset)
    6. bnclassify:::compute_log_joint_incomplete.bnc_bn(...)
    7. bnclassify::as_grain(x)
    8. bnclassify:::compile_grain(params(x))
    9. gRain::grain.CPTspec
   10. base::getExportedValue(pkg, name)
  
  -- 7. Error: nominal joint prob instance (@test-wrap-grain.R#6)  ---------------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
   1. bnclassify::as_grain(a)
   2. bnclassify:::compile_grain(params(x))
   3. gRain::grain.CPTspec
   4. base::getExportedValue(pkg, name)
  
  -- 8. Error:  joint prob instance with no evidence (@test-wrap-grain.R#17)  ----
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
   1. bnclassify::as_grain(a)
   2. bnclassify:::compile_grain(params(x))
   3. gRain::grain.CPTspec
   4. base::getExportedValue(pkg, name)
  
  -- 9. Error: cpts to grain (@test-wrap-grain.R#30)  ----------------------------
  'grain.CPTspec' is not an exported object from 'namespace:gRain'
  Backtrace:
   1. bnclassify:::compile_grain(params(a))
   2. gRain::grain.CPTspec
   3. base::getExportedValue(pkg, name)
  
  == testthat results  ===========================================================
  [ OK: 607 | SKIPPED: 25 | WARNINGS: 3 | FAILED: 9 ]
  1. Error: nominal as grain (@test-anb-bn.R#17) 
  2. Error: Incomplete data set (@test-infer.R#19) 
  3. Error: All incomplete rows (@test-infer.R#63) 
  4. Error: log-likelihood with incomplete data (@test-infer.R#106) 
  5. Error: incomplete data (@test-learn-aode.r#88) 
  6. Error: Maximum a posteriori (@test-predict.R#6) 
  7. Error: nominal joint prob instance (@test-wrap-grain.R#6) 
  8. Error:  joint prob instance with no evidence (@test-wrap-grain.R#17) 
  9. Error: cpts to grain (@test-wrap-grain.R#30) 
  
  Error: testthat unit tests failed
  Execution halted