Running ‘testthat.R’ [22s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > require(testthat)
  Loading required package: testthat
  > require(RelimpPCR)
  Loading required package: RelimpPCR
  > test_check("RelimpPCR")
  [1] "RelimpPCR successful. Checking output..."
  ── 1. Failure: Check Relimp PCA R2 Train (@tests1.R#13)  ───────────────────────
  Z$relimp_pca_r2_train[1] not equal to 0.8272183.
  1/1 mismatches
  [1] 0.821 - 0.827 == -0.00671
  
  ── 2. Failure: Check Relimp PCA R2 Train (@tests1.R#14)  ───────────────────────
  Z$relimp_pca_r2_train[length(Z$relimp_pca_r2_train)] not equal to 0.9056683.
  1/1 mismatches
  [1] 0.852 - 0.906 == -0.0536
  
  ── 3. Failure: Check Relimp PCA R2 Test (@tests1.R#17)  ────────────────────────
  Z$relimp_pca_r2_test[1] not equal to 0.8022651.
  1/1 mismatches
  [1] 0.684 - 0.802 == -0.118
  
  ── 4. Failure: Check Relimp PCA R2 Test (@tests1.R#18)  ────────────────────────
  Z$relimp_pca_r2_test[length(Z$relimp_pca_r2_test)] not equal to 0.7338205.
  1/1 mismatches
  [1] 0.785 - 0.734 == 0.0508
  
  ── 5. Failure: Check Original R2 Train (@tests1.R#21)  ─────────────────────────
  Z$original_r2_train[1] not equal to 0.7442582.
  1/1 mismatches
  [1] 0.744 - 0.744 == -0.000257
  
  ── 6. Failure: Check Original R2 Train (@tests1.R#22)  ─────────────────────────
  Z$original_r2_train[length(Z$original_r2_train)] not equal to 0.9056683.
  1/1 mismatches
  [1] 0.852 - 0.906 == -0.0536
  
  ── 7. Failure: Check Original R2 Test (@tests1.R#25)  ──────────────────────────
  Z$original_r2_test[1] not equal to 0.6964342.
  1/1 mismatches
  [1] 0.28 - 0.696 == -0.416
  
  ── 8. Failure: Check Original R2 Test (@tests1.R#26)  ──────────────────────────
  Z$original_r2_test[length(Z$original_r2_test)] not equal to 0.7338205.
  1/1 mismatches
  [1] 0.785 - 0.734 == 0.0508
  
  ── 9. Failure: Check PCA R2 Train (@tests1.R#29)  ──────────────────────────────
  Z$pca_r2_train[1] not equal to 0.8272183.
  1/1 mismatches
  [1] 0.821 - 0.827 == -0.00671
  
  ── 10. Failure: Check PCA R2 Train (@tests1.R#30)  ─────────────────────────────
  Z$pca_r2_train[length(Z$pca_r2_train)] not equal to 0.9056683.
  1/1 mismatches
  [1] 0.852 - 0.906 == -0.0536
  
  ── 11. Failure: Check PCA R2 Test (@tests1.R#33)  ──────────────────────────────
  Z$pca_r2_test[1] not equal to 0.8022651.
  1/1 mismatches
  [1] 0.684 - 0.802 == -0.118
  
  ── 12. Failure: Check PCA R2 Test (@tests1.R#34)  ──────────────────────────────
  Z$pca_r2_test[length(Z$pca_r2_test)] not equal to 0.7338205.
  1/1 mismatches
  [1] 0.785 - 0.734 == 0.0508
  
  ── 13. Failure: Check Relimp R2 Train (@tests1.R#37)  ──────────────────────────
  Z$relimp_r2_train[1] not equal to 0.7977666.
  1/1 mismatches
  [1] 0.735 - 0.798 == -0.0624
  
  ── 14. Failure: Check Relimp R2 Train (@tests1.R#38)  ──────────────────────────
  Z$relimp_r2_train[length(Z$relimp_r2_train)] not equal to 0.9056683.
  1/1 mismatches
  [1] 0.852 - 0.906 == -0.0536
  
  ── 15. Failure: Check Relimp R2 Test (@tests1.R#41)  ───────────────────────────
  Z$relimp_r2_test[1] not equal to 0.757175.
  1/1 mismatches
  [1] 0.929 - 0.757 == 0.172
  
  ── 16. Failure: Check Relimp R2 Test (@tests1.R#42)  ───────────────────────────
  Z$relimp_r2_test[length(Z$relimp_r2_test)] not equal to 0.7338205.
  1/1 mismatches
  [1] 0.785 - 0.734 == 0.0508
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 3 SKIPPED: 0 FAILED: 16
  1. Failure: Check Relimp PCA R2 Train (@tests1.R#13) 
  2. Failure: Check Relimp PCA R2 Train (@tests1.R#14) 
  3. Failure: Check Relimp PCA R2 Test (@tests1.R#17) 
  4. Failure: Check Relimp PCA R2 Test (@tests1.R#18) 
  5. Failure: Check Original R2 Train (@tests1.R#21) 
  6. Failure: Check Original R2 Train (@tests1.R#22) 
  7. Failure: Check Original R2 Test (@tests1.R#25) 
  8. Failure: Check Original R2 Test (@tests1.R#26) 
  9. Failure: Check PCA R2 Train (@tests1.R#29) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted