Running 'testthat.R' [35s/46s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pre)
  > 
  > #####
  > # partykit and earth is loaded as failures of tests may be caused by the version
  > # of either package. Thus, we print the sessionInfo
  > 
  > library(earth)
  Loading required package: plotmo
  Loading required package: plotrix
  Loading required package: TeachingDemos
  > library(partykit)
  Loading required package: grid
  Loading required package: libcoin
  Loading required package: mvtnorm
  > print(sessionInfo())
  R Under development (unstable) (2019-03-12 r76227)
  Platform: x86_64-pc-linux-gnu (64-bit)
  Running under: Debian GNU/Linux buster/sid
  
  Matrix products: default
  BLAS: /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libRblas.so
  LAPACK: /home/hornik/tmp/R.check/r-devel-clang/Work/build/lib/libRlapack.so
  
  locale:
   [1] LC_CTYPE=en_US.iso885915       LC_NUMERIC=C                  
   [3] LC_TIME=en_US.iso885915        LC_COLLATE=C                  
   [5] LC_MONETARY=en_US.iso885915    LC_MESSAGES=en_US.iso885915   
   [7] LC_PAPER=en_US.iso885915       LC_NAME=C                     
   [9] LC_ADDRESS=C                   LC_TELEPHONE=C                
  [11] LC_MEASUREMENT=en_US.iso885915 LC_IDENTIFICATION=C           
  
  attached base packages:
  [1] grid      stats     graphics  grDevices utils     datasets  methods  
  [8] base     
  
  other attached packages:
  [1] partykit_1.2-3     mvtnorm_1.0-10     libcoin_1.0-4      earth_4.7.0       
  [5] plotmo_3.5.2       TeachingDemos_2.10 plotrix_3.7-4      pre_0.6.0         
  [9] testthat_2.0.1    
  
  loaded via a namespace (and not attached):
   [1] lattice_0.20-38  codetools_0.2-16 glmnet_2.0-16    foreach_1.4.4   
   [5] R6_2.4.0         magrittr_1.5     stringi_1.4.3    rlang_0.3.1     
   [9] rpart_4.1-13     Matrix_1.2-16    splines_3.6.0    Formula_1.2-3   
  [13] tools_3.6.0      iterators_1.0.10 stringr_1.4.0    survival_2.43-3 
  [17] compiler_3.6.0   inum_1.0-0      
  > 
  > test_check("pre")
  -- 1. Failure: gpe works with default settings and gives previous results (@test
  `fit` not equal to read_to_test("gpe_fit1_binary").
  Component "a0": Numeric: lengths (93, 90) differ
  Component "beta": Lengths: 230, 340
  Component "beta": Attributes: < Component "Dim": Mean relative difference: 0.4782609 >
  Component "beta": Attributes: < Component "Dimnames": Component 1: Lengths (23, 34) differ (string compare on first 23) >
  Component "beta": Attributes: < Component "Dimnames": Component 1: 22 string mismatches >
  Component "beta": Attributes: < Component "i": Numeric: lengths (33, 25) differ >
  Component "beta": Attributes: < Component "p": Mean relative difference: 0.2957746 >
  Component "beta": Attributes: < Component "x": Numeric: lengths (33, 25) differ >
  
  -- 2. Failure: gpe_trees gives previous results for binary outcomes (@test_gpe.R
  `out` not equal to read_to_test("gpe_tree_binary_1").
  Lengths differ: 10 is not 31
  
  -- 3. Failure: gpe_trees gives previous results for binary outcomes (@test_gpe.R
  `out2` not equal to read_to_test("gpe_tree_binary_1_w_glm").
  16/16 mismatches
  x[1]: "rTerm(glucose <= 102)"
  y[1]: "rTerm(age <= 26)"
  
  x[2]: "rTerm(glucose <= 105)"
  y[2]: "rTerm(age <= 26 & glucose <= 128)"
  
  x[3]: "rTerm(glucose <= 105 & pressure <= 68)"
  y[3]: "rTerm(age <= 26 & glucose > 128)"
  
  x[4]: "rTerm(glucose <= 105 & pressure <= 68 & pedigree <= 0.334)"
  y[4]: "rTerm(age <= 27)"
  
  x[5]: "rTerm(glucose <= 105 & pressure <= 68 & pedigree > 0.334)"
  y[5]: "rTerm(age <= 27 & triceps <= 28)"
  
  -- 4. Failure: gpe_trees gives previous results for binary outcomes (@test_gpe.R
  `out` not equal to read_to_test("gpe_tree_binary_2").
  Lengths differ: 10 is not 25
  
  -- 5. Failure: gpe_earth gives previous results for binary outcomes (@test_gpe.R
  `out` not equal to read_to_test("gpe_earth_binary").
  Lengths differ: 57 is not 62
  
  -- 6. Failure: gpe_earth gives previous results for binary outcomes (@test_gpe.R
  `out1` not equal to read_to_test("gpe_earth_binary_no_learn").
  Lengths differ: 58 is not 55
  
  -- 7. Failure: gpe_linear returns terms for factor levels (@test_gpe.R#399)  ---
  `out` not equal to c(...).
  3/3 mismatches
  x[1]: "lTerm(x1 == '2', scale = 0.37)"
  y[1]: "lTerm(x1 == '2', scale = 0.41)"
  
  x[2]: "lTerm(x1 == '3', scale = 0.51)"
  y[2]: "lTerm(x1 == '3', scale = 0.5)"
  
  x[3]: "lTerm(x1 == '4', scale = 0.37)"
  y[3]: "lTerm(x1 == '4', scale = 0.41)"
  
  -- 8. Failure: Print works for gpe (@test_gpe_misc.R#17)  ----------------------
  capture.output(print(airq.ens)) not equal to read_to_test("gpe_airquality_print_output_linear").
  1/12 mismatches
  x[5]: "  mean cv error (se) = 531 (119)"
  y[5]: "  mean cv error (se) = 529 (120)"
  
  -- 9. Failure: Print works for gpe (@test_gpe_misc.R#27)  ----------------------
  capture.output(print(airq.ens)) not equal to read_to_test("gpe_airquality_print_output").
  Lengths differ: 21 is not 18
  
  -- 10. Failure: Print works for gpe (@test_gpe_misc.R#40)  ---------------------
  capture.output(print(airq.ens)) not equal to read_to_test("gpe_airquality_print_output_earth").
  Lengths differ: 14 is not 15
  
  -- 11. Failure: Coef works for gpe (@test_gpe_misc.R#53)  ----------------------
  `coefs` not equal to read_to_test("gpe_airquality_w_pre_coef").
  Component "coefficient": Mean relative difference: 0.02310814
  
  -- 12. Failure: Predict works for gpe and gives previous results (@test_gpe_misc
  `preds` not equal to read_to_test("gpe_predict_regression").
  111/111 mismatches (average diff: 0.683)
  [1] 41 - 41.8 == -0.761
  [2] 23 - 23.6 == -0.616
  [3] 23 - 23.6 == -0.616
  [4] 23 - 23.6 == -0.616
  [5] 23 - 23.6 == -0.616
  [6] 23 - 23.6 == -0.616
  [7] 23 - 23.6 == -0.616
  [8] 23 - 23.6 == -0.616
  [9] 23 - 23.6 == -0.616
  ...
  
  -- 13. Failure: Predict works for gpe and gives previous results (@test_gpe_misc
  preds[1:100] not equal to read_to_test("gpe_predict_binary_response").
  100/100 mismatches (average diff: 0.148)
  [1] 0.296 - 0.307 == -0.0105
  [2] 0.264 - 0.486 == -0.2221
  [3] 0.213 - 0.179 ==  0.0338
  [4] 0.276 - 0.181 ==  0.0953
  [5] 0.561 - 0.203 ==  0.3579
  [6] 0.569 - 0.168 ==  0.4008
  [7] 0.237 - 0.373 == -0.1355
  [8] 0.299 - 0.687 == -0.3881
  [9] 0.262 - 0.164 ==  0.0980
  ...
  
  -- 14. Failure: summary.pre gives previous results (@test_pre_misc.R#30)  ------
  `summar` not equal to read_to_test("pre_summary").
  2/8 mismatches
  x[3]: "  lambda =  2.808534"
  y[3]: "  lambda =  2.559032"
  
  x[5]: "  mean cv error (se) = 416.6409 (97.81142)"
  y[5]: "  mean cv error (se) = 402.6379 (82.6663)"
  
  -- 15. Failure: Importance gives previous results with airquality data (@test_pr
  `imp1` not equal to read_to_test("airquality_w_importance1").
  Component "varimps": Component "imp": Mean relative difference: 0.03811487
  Component "baseimps": Component "rule": 2 string mismatches
  Component "baseimps": Component "description": 2 string mismatches
  Component "baseimps": Component "imp": Mean relative difference: 0.03982756
  Component "baseimps": Component "coefficient": Mean relative difference: 0.3496433
  Component "baseimps": Component "sd": Mean relative difference: 1.606939
  
  -- 16. Failure: Importance gives previous results with airquality data (@test_pr
  `imp2` not equal to read_to_test("airquality_w_importance2").
  Component "varimps": Component "imp": Mean relative difference: 0.1674176
  Component "baseimps": Component "imp": Mean relative difference: 0.1674176
  Component "baseimps": Component "coefficient": Mean relative difference: 0.03866714
  
  -- 17. Failure: Importance gives previous results with airquality data (@test_pr
  `imp3` not equal to read_to_test("airquality_w_importance3").
  Component "varimps": Component "imp": Mean relative difference: 0.1067559
  Component "baseimps": Component "imp": Mean relative difference: 0.1067559
  Component "baseimps": Component "coefficient": Mean relative difference: 0.03866714
  
  -- 18. Failure: Coef gives previous results with airquality data (@test_pre_misc
  `coefs` not equal to read_to_test("airquality_w_pre_coef").
  Component "coefficient": Mean relative difference: 0.02165367
  
  -- 19. Failure: cvpre gives previous results with airquality data (@test_pre_mis
  `airq.cv` not equal to read_to_test("airquality_w_pre_cv").
  Component "accuracy": Component "MSE": Mean relative difference: 0.07312668
  Component "accuracy": Component "MAE": Mean relative difference: 0.01859815
  Component "cvpreds": Mean relative difference: 0.2153457
  Component "fold_indicators": Mean relative difference: 0.6666667
  
  -- 20. Failure: bsnullinteract and interact gives previous results with airquali
  `nullmods` not equal to read_to_test("airquality_w_bsnullinteract").
  Component 1: Component 1: Component 1: Numeric: lengths (71, 68) differ
  Component 1: Component 1: Component 2: Numeric: lengths (71, 68) differ
  Component 1: Component 1: Component 3: Numeric: lengths (71, 68) differ
  Component 1: Component 1: Component 4: Numeric: lengths (71, 68) differ
  Component 1: Component 1: Component 5: Numeric: lengths (71, 68) differ
  Component 1: Component 1: Component 6: Numeric: lengths (71, 68) differ
  Component 1: Component 1: Component 8: Component 1: Numeric: lengths (73, 72) differ
  Component 1: Component 1: Component 8: Component 2: Lengths: 1241, 936
  Component 1: Component 1: Component 8: Component 2: Attributes: < Component 1: Mean relative difference: 0.05555556 >
  ...
  
  -- 21. Failure: bsnullinteract and interact gives previous results with airquali
  `inter` not equal to read_to_test("airquality_w_inter").
  Component "fittedH2": Mean relative difference: 0.1042064
  Component "nullH2": Component "Temp": Mean relative difference: 0.7582856
  Component "nullH2": Component "Wind": Mean relative difference: 0.8144956
  
  -- 22. Failure: Print gives previous results with airquality (@test_pre_misc.R#1
  capture.output(print(airq.ens)) not equal to read_to_test("airquality_print_output").
  8/15 mismatches
  x[3]: "  lambda =  2.809"
  y[3]: "  lambda =  2.559"
  
  x[5]: "  mean cv error (se) = 416.6 (97.81)"
  y[5]: "  mean cv error (se) = 402.6 (82.67)"
  
  x[10]: "  (Intercept)       73.006                        1"
  y[10]: "  (Intercept)      73.7715                        1"
  
  x[11]: "       rule25      -29.950  Wind > 6.3 & Temp <= 82"
  y[11]: "       rule25     -29.9066  Wind > 6.3 & Temp <= 82"
  
  x[12]: "       rule10       -8.911  Temp <= 84 & Temp <= 77"
  y[12]: "       rule10      -9.3690  Temp <= 84 & Temp <= 77"
  
  -- 23. Failure: Print gives previous results with airquality (@test_pre_misc.R#1
  capture.output(print(airq.ens)) not equal to read_to_test("airquality_print_output_less_digits").
  8/15 mismatches
  x[3]: "  lambda =  2.8"
  y[3]: "  lambda =  2.6"
  
  x[5]: "  mean cv error (se) = 420 (98)"
  y[5]: "  mean cv error (se) = 400 (83)"
  
  x[10]: "  (Intercept)        73.01                        1"
  y[10]: "  (Intercept)        73.77                        1"
  
  x[11]: "       rule25       -29.95  Wind > 6.3 & Temp <= 82"
  y[11]: "       rule25       -29.91  Wind > 6.3 & Temp <= 82"
  
  x[12]: "       rule10        -8.91  Temp <= 84 & Temp <= 77"
  y[12]: "       rule10        -9.37  Temp <= 84 & Temp <= 77"
  
  -- 24. Failure: Predict gives previous results with airquality data (@test_pre_m
  `preds` not equal to read_to_test("airquality_preds").
  111/111 mismatches (average diff: 0.561)
  [1] 28.7 - 28.5 == 0.230
  [2] 26.6 - 26.3 == 0.285
  [3] 23.2 - 22.6 == 0.646
  [4] 24.0 - 23.5 == 0.560
  [5] 26.2 - 25.8 == 0.332
  [6] 22.4 - 21.6 == 0.740
  [7] 20.0 - 19.0 == 0.996
  [8] 25.4 - 25.0 == 0.418
  [9] 25.7 - 25.4 == 0.379
  ...
  
  -- 25. Failure: Get previous results with airquality and pre function (@tests_pr
  `airq.ens` not equal to read_to_test("airquality_w_pre_without_LR").
  Component "glmnet.fit": Component "glmnet.fit": Component "a0": Numeric: lengths (84, 88) differ
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Lengths: 3024, 3168
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "Dim": Mean relative difference: 0.04761905 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "Dimnames": Component 2: Lengths (84, 88) differ (string compare on first 84) >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "i": Numeric: lengths (1321, 1399) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "p": Numeric: lengths (85, 89) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "x": Numeric: lengths (1321, 1399) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "df": Numeric: lengths (84, 88) differ
  Component "glmnet.fit": Component "glmnet.fit": Component "dim": Mean relative difference: 0.04761905
  ...
  
  -- 26. Failure: Get previous results with PimaIndiansDiabetes and pre function (
  `fit` not equal to read_to_test("PimaIndiansDiabetes_w_pre_no_LR").
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Mean relative difference: 1.241896
  Component "rules": Attributes: < Component "dim": Mean relative difference: 1 >
  Component "rules": Lengths (22, 44) differ (string compare on first 22)
  Component "rules": 11 string mismatches
  
  -- 27. Failure: Get previous results with PimaIndiansDiabetes and pre function (
  `fit` not equal to read_to_test("PimaIndiansDiabetes_w_pre_LR").
  Component "glmnet.fit": Component "glmnet.fit": Component "a0": Numeric: lengths (85, 83) differ
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Lengths: 1615, 2324
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "Dim": Mean relative difference: 0.1057692 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "Dimnames": Component 1: Lengths (19, 28) differ (string compare on first 19) >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "Dimnames": Component 2: Lengths (85, 83) differ (string compare on first 83) >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "i": Numeric: lengths (980, 1274) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "p": Numeric: lengths (86, 84) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "x": Numeric: lengths (980, 1274) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "df": Numeric: lengths (85, 83) differ
  ...
  
  == testthat results  ===========================================================
  OK: 76 SKIPPED: 1 FAILED: 27
  1. Failure: gpe works with default settings and gives previous results (@test_gpe.R#30) 
  2. Failure: gpe_trees gives previous results for binary outcomes (@test_gpe.R#164) 
  3. Failure: gpe_trees gives previous results for binary outcomes (@test_gpe.R#174) 
  4. Failure: gpe_trees gives previous results for binary outcomes (@test_gpe.R#184) 
  5. Failure: gpe_earth gives previous results for binary outcomes (@test_gpe.R#313) 
  6. Failure: gpe_earth gives previous results for binary outcomes (@test_gpe.R#326) 
  7. Failure: gpe_linear returns terms for factor levels (@test_gpe.R#399) 
  8. Failure: Print works for gpe (@test_gpe_misc.R#17) 
  9. Failure: Print works for gpe (@test_gpe_misc.R#27) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted