Running 'test_import.R' [1s]
  Running 'test_library.R' [10s]
  Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pls)
  
  Attaching package: 'pls'
  
  The following object is masked from 'package:stats':
  
      loadings
  
  > 
  > test_check("pls")
  -- 1. Failure: Basic model fitting methods works (@test_basic_pls.R#18)  -------
  `yarn.pcr` has changed from known value recorded in 'yarn.pcr.rds'.
  Component "validation": Component "pred": Mean relative difference: 0.03658226
  Component "validation": Component "PRESS": Mean relative difference: 0.057035
  Component "validation": Component "adj": Mean relative difference: 0.1446034
  Component "validation": Component "segments": Component "V1": Mean relative difference: 0.8235294
  Component "validation": Component "segments": Component "V2": Mean relative difference: 1.774194
  Component "validation": Component "segments": Component "V3": Mean relative difference: 0.6875
  Component "validation": Component "segments": Component "V4": Mean relative difference: 0.6376812
  Component "validation": Component "segments": Component "V5": Mean relative difference: 0.42
  Component "validation": Component "segments": Component "V6": Mean relative difference: 1.152174
  ...
  Principal Component Regression (pcr), method = `svdpc`
  
  -- 2. Failure: Basic model fitting methods works (@test_basic_pls.R#19)  -------
  `yarn.pls` has changed from known value recorded in 'yarn.pls.rds'.
  Component "validation": Component "pred": Mean relative difference: 0.01175743
  Component "validation": Component "PRESS": Mean relative difference: 0.1297258
  Component "validation": Component "adj": Mean relative difference: 0.04298291
  Component "validation": Component "segments": Component "V1": Mean relative difference: 0.9444444
  Component "validation": Component "segments": Component "V2": Mean relative difference: 0.95
  Component "validation": Component "segments": Component "V3": Mean relative difference: 0.5348837
  Component "validation": Component "segments": Component "V4": Mean relative difference: 0.09615385
  Component "validation": Component "segments": Component "V5": Mean relative difference: 0.4791667
  Component "validation": Component "segments": Component "V6": Mean relative difference: 0.5319149
  ...
  Partial Least Squars (pls), method = `kernelpls`
  
  -- 3. Failure: Basic model fitting methods works (@test_basic_pls.R#20)  -------
  `yarn.pls.widekernel` has changed from known value recorded in 'yarn.pls.widekernel.rds'.
  Component "validation": Component "pred": Mean relative difference: 0.01608457
  Component "validation": Component "PRESS": Mean relative difference: 0.2563449
  Component "validation": Component "adj": Mean relative difference: 0.1596795
  Component "validation": Component "segments": Component "V1": Mean relative difference: 0.4237288
  Component "validation": Component "segments": Component "V2": Mean relative difference: 0.3414634
  Component "validation": Component "segments": Component "V3": Mean relative difference: 0.75
  Component "validation": Component "segments": Component "V4": Mean relative difference: 0.7083333
  Component "validation": Component "segments": Component "V5": Mean relative difference: 0.9189189
  Component "validation": Component "segments": Component "V6": Mean relative difference: 0.7575758
  ...
  Partial Least Squars (pls), method = `widekernelpls`
  
  -- 4. Failure: Basic model fitting methods works (@test_basic_pls.R#21)  -------
  `yarn.cppls` has changed from known value recorded in 'yarn.cppls.rds'.
  Component "coefficients": Mean relative difference: 0.6839927
  Component "scores": Mean relative difference: 1.082657
  Component "loadings": Mean relative difference: 0.9130467
  Component "loading.weights": Mean relative difference: 0.9139675
  Component "Yscores": Mean relative difference: 1.641187
  Component "Yloadings": Mean relative difference: 0.796214
  Component "projection": Mean relative difference: 1.037608
  Component "Xmeans": Mean relative difference: 0.01889934
  Component "fitted.values": Mean relative difference: 0.2543541
  ...
  Canocial Powered Partial Least Squares works (cppls), method = `cppls`
  
  -- 5. Failure: Alternative model fitting methods works (@test_basic_pls.R#32)  -
  `yarn.oscorespls` has changed from known value recorded in 'yarn.oscorespls.rds'.
  Component "validation": Component "pred": Mean relative difference: 0.01522022
  Component "validation": Component "PRESS": Mean relative difference: 0.3767438
  Component "validation": Component "adj": Mean relative difference: 0.0979324
  Component "validation": Component "segments": Component "V1": Mean relative difference: 0.4130435
  Component "validation": Component "segments": Component "V2": Mean relative difference: 0.54
  Component "validation": Component "segments": Component "V3": Mean relative difference: 0.3943662
  Component "validation": Component "segments": Component "V4": Mean relative difference: 1.545455
  Component "validation": Component "segments": Component "V5": Mean relative difference: 1.205882
  Component "validation": Component "segments": Component "V6": Mean relative difference: 1
  ...
  Classical orthogonal scores algorithm (oscorespls)
  
  -- 6. Failure: Alternative model fitting methods works (@test_basic_pls.R#33)  -
  `yarn.simpls` has changed from known value recorded in 'yarn.simpls.rds'.
  Component "validation": Component "pred": Mean relative difference: 0.01151205
  Component "validation": Component "PRESS": Mean relative difference: 0.008149339
  Component "validation": Component "adj": Mean relative difference: 0.02531164
  Component "validation": Component "segments": Component "V1": Mean relative difference: 0.6101695
  Component "validation": Component "segments": Component "V2": Mean relative difference: 0.2291667
  Component "validation": Component "segments": Component "V3": Mean relative difference: 0.7073171
  Component "validation": Component "segments": Component "V4": Mean relative difference: 1.333333
  Component "validation": Component "segments": Component "V5": Mean relative difference: 0.4516129
  Component "validation": Component "segments": Component "V6": Mean relative difference: 0.775
  ...
  SIMPLS algorithm
  
  -- 7. Failure: The predictions for PLS are the same and for PCR/CPPLS are diffre
  `pred.cppls` has changed from known value recorded in 'pred.cppls.rds'.
  168/168 mismatches (average diff: 10.2)
  [1] 94.9 - 90.2 ==  4.710
  [2] 80.4 - 70.4 == 10.002
  [3] 82.9 - 81.7 ==  1.212
  [4] 63.6 - 49.5 == 14.149
  [5] 64.7 - 59.6 ==  5.152
  [6] 64.0 - 69.8 == -5.795
  [7] 49.4 - 29.8 == 19.665
  [8] 45.8 - 37.0 ==  8.775
  [9] 49.7 - 49.0 ==  0.689
  ...
  PCR predictions should not change
  
  == testthat results  ===========================================================
  OK: 26 SKIPPED: 0 FAILED: 7
  1. Failure: Basic model fitting methods works (@test_basic_pls.R#18) 
  2. Failure: Basic model fitting methods works (@test_basic_pls.R#19) 
  3. Failure: Basic model fitting methods works (@test_basic_pls.R#20) 
  4. Failure: Basic model fitting methods works (@test_basic_pls.R#21) 
  5. Failure: Alternative model fitting methods works (@test_basic_pls.R#32) 
  6. Failure: Alternative model fitting methods works (@test_basic_pls.R#33) 
  7. Failure: The predictions for PLS are the same and for PCR/CPPLS are diffrent than PLS (@test_basic_pls.R#49) 
  
  Error: testthat unit tests failed
  Execution halted