Running ‘testthat.R’ [50s/51s]
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: Formula
  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 version 3.6.1 Patched (2019-11-14 r77414)
  Platform: i386-pc-solaris2.10 (32-bit)
  Running under: Solaris 10
  
  Matrix products: default
  BLAS:   /home/ripley/R/cc/lib/libRblas.so
  LAPACK: /home/ripley/R/cc/lib/libRlapack.so
  
  locale:
  [1] /en_GB.UTF-8/C/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
  
  attached base packages:
  [1] grid      stats     graphics  grDevices utils     datasets  methods  
  [8] base     
  
  other attached packages:
   [1] partykit_1.2-5     mvtnorm_1.0-11     libcoin_1.0-5      earth_5.1.2       
   [5] plotmo_3.5.6       TeachingDemos_2.10 plotrix_3.7-6      Formula_1.2-3     
   [9] pre_0.7.1          testthat_2.3.0    
  
  loaded via a namespace (and not attached):
   [1] magrittr_1.5       splines_3.6.1      lattice_0.20-38    R6_2.4.1          
   [5] rlang_0.4.1        foreach_1.4.7      stringr_1.4.0      tools_3.6.1       
   [9] glmnet_3.0         iterators_1.0.12   MatrixModels_0.4-1 survival_3.1-7    
  [13] inum_1.0-1         Matrix_1.2-17      codetools_0.2-16   rpart_4.1-15      
  [17] shape_1.4.4        stringi_1.4.3      compiler_3.6.1    
  > 
  > test_check("pre")
  ── 1. Error: Importance gives previous results with airquality data (@test_pre_m
  could not find function "predict.cv.glmnet"
  Backtrace:
   1. pre::importance(airq.ens, global = FALSE, plot = FALSE)
   2. pre:::predict.pre(...)
  
  ── 2. Error: cvpre gives previous results with airquality data (@test_pre_misc.R
  could not find function "predict.cv.glmnet"
  Backtrace:
   1. pre::cvpre(airq.ens, k = 2, print = FALSE, parallel = FALSE)
   3. pre:::predict.pre(...)
  
  ── 3. Error: bsnullinteract and interact gives previous results with airquality 
  could not find function "predict.cv.glmnet"
  Backtrace:
   1. pre::bsnullinteract(airq.ens, nsamp = 1)
   2. pre:::predict.pre(bs.ens.null, newdata = object$data, type = "link")
  
  ── 4. Error: Predict gives previous results with airquality data (@test_pre_misc
  could not find function "predict.cv.glmnet"
  Backtrace:
   1. stats::predict(airq.ens, airquality)
   2. pre:::predict.pre(airq.ens, airquality)
  
  ── 5. Failure: Get previous results with lung survival data (@tests_pre.R#157)  
  `fit` not equal to read_to_test("lung_w_pre_surv").
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "i": Numeric: lengths (370, 371) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "p": Mean relative difference: 0.003015454 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Attributes: < Component "x": Numeric: lengths (370, 371) differ >
  
  ── 6. Error: pre gives almost the same rules with `sparse` set to `TRUE` and `FA
  could not find function "predict.cv.glmnet"
  Backtrace:
   1. testthat::expect_equal(predict(airq.ens), predict(airq.ens.sparse))
   5. pre:::predict.pre(airq.ens)
  
  ── 7. Error: predict.pre works with `sparse` set to `TRUE` (@tests_pre.R#194)  ─
  could not find function "predict.cv.glmnet"
  Backtrace:
   1. testthat::expect_equal(...)
   5. pre:::predict.pre(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 101 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: Importance gives previous results with airquality data (@test_pre_misc.R#63) 
  2. Error: cvpre gives previous results with airquality data (@test_pre_misc.R#100) 
  3. Error: bsnullinteract and interact gives previous results with airquality data (@test_pre_misc.R#122) 
  4. Error: Predict gives previous results with airquality data (@test_pre_misc.R#159) 
  5. Failure: Get previous results with lung survival data (@tests_pre.R#157) 
  6. Error: pre gives almost the same rules with `sparse` set to `TRUE` and `FALSE` (@tests_pre.R#180) 
  7. Error: predict.pre works with `sparse` set to `TRUE` (@tests_pre.R#194) 
  
  Error: testthat unit tests failed
  Execution halted