Running ‘testthat.R’ [28s/40s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vimp)
  > 
  > test_check("vimp")
  ── 1. Failure: Test averaging of ANOVA-based variable importance (@test_average_
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -4.47e-18 - 0.342 == -0.342
  
  ── 2. Failure: Test cross-validated estimator of ANOVA-based variable importance
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -0.000136 - 0.342 == -0.343
  
  ── 3. Failure: Test cross-validated estimator of ANOVA-based variable importance
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -4.42e-17 - 0.342 == -0.342
  
  ── 4. Failure: Test cross-validated vimp with single cv folds, pre-computed SL (
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -0.000334 - 0.342 == -0.343
  
  ── 5. Failure: Test cross-validated vimp with double cv folds, pre-computed SL (
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -7.73e-05 - 0.342 == -0.343
  
  ── 6. Failure: Test merging of ANOVA-based variable importance (@test_merge_vimp
  merged_ests$est[1] not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] 0.0583 - 0.342 == -0.284
  
  ── 7. Failure: Test merging of ANOVA-based variable importance (@test_merge_vimp
  merged_ests$est[2] not equal to (2497/7875)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -6.23e-18 - 0.158 == -0.158
  
  ── 8. Failure: Test merging of ANOVA-based variable importance (@test_merge_vimp
  `print(merged_ests)` does not match "Estimate  SE          95% CI".
  Actual value: "Call:\nmerge_vim(est_1, est_2)\n\nVariable importance estimates:\n      Estimate      SE           95% CI                       \ns = 1  5.832434e-02 4.611936e-03 [ 4.928512e-02, 6.736357e-02]\ns = 2 -6.226332e-18 4.651823e-17 [-9.740038e-17, 8.494772e-17]"
  
  ── 9. Failure: Nonparametric R^2 with pre-computed fitted values works (@test_vi
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -6.23e-18 - 0.342 == -0.342
  
  ── 10. Failure: Nonparametric R^2 with pre-computed fitted values works (@test_v
  `print(est)` does not match "\n\nVariable importance estimates:\n      Estimate  SE          95% CI".
  Actual value: "Call:\nvimp_regression(Y = y, f1 = full_fitted, f2 = reduced_fitted, \n    indx = 2, run_regression = FALSE)\n\nVariable importance estimates:\n      Estimate      SE           95% CI                        \ns = 2 -6.226332e-18 4.651823e-17 [-9.740038e-17,  8.494772e-17]"
  
  ── 11. Failure: Nonparametric R^2 with internally-computed fitted values works (
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] -6.52e-19 - 0.342 == -0.342
  
  ── 12. Failure: Nonparametric R^2 with internally-computed fitted values works (
  est$est not equal to (500/729)/(1 + 2497/7875 + 500/729).
  1/1 mismatches
  [1] 5.62e-18 - 0.342 == -0.342
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 19 | SKIPPED: 0 | WARNINGS: 533 | FAILED: 12 ]
  1. Failure: Test averaging of ANOVA-based variable importance (@test_average_vimp_regression.R#43) 
  2. Failure: Test cross-validated estimator of ANOVA-based variable importance with single cv folds (@test_cv_vim.R#23) 
  3. Failure: Test cross-validated estimator of ANOVA-based variable importance with double cv folds (@test_cv_vim.R#29) 
  4. Failure: Test cross-validated vimp with single cv folds, pre-computed SL (@test_cv_vim.R#62) 
  5. Failure: Test cross-validated vimp with double cv folds, pre-computed SL (@test_cv_vim.R#94) 
  6. Failure: Test merging of ANOVA-based variable importance (@test_merge_vimp_regression.R#37) 
  7. Failure: Test merging of ANOVA-based variable importance (@test_merge_vimp_regression.R#38) 
  8. Failure: Test merging of ANOVA-based variable importance (@test_merge_vimp_regression.R#39) 
  9. Failure: Nonparametric R^2 with pre-computed fitted values works (@test_vimp_regression.R#31) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted