Running ‘testthat.R’ [61s/72s]
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 version 3.5.1 Patched (2018-07-24 r75006)
  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-2     mvtnorm_1.0-8      libcoin_1.0-1      earth_4.6.3       
  [5] plotmo_3.4.2       TeachingDemos_2.10 plotrix_3.7-2      pre_0.5.0         
  [9] testthat_2.0.0    
  
  loaded via a namespace (and not attached):
   [1] lattice_0.20-35  codetools_0.2-15 glmnet_2.0-16    foreach_1.4.4   
   [5] R6_2.2.2         magrittr_1.5     stringi_1.2.4    rlang_0.2.1     
   [9] rpart_4.1-13     Matrix_1.2-14    splines_3.5.1    Formula_1.2-3   
  [13] tools_3.5.1      iterators_1.0.10 stringr_1.3.1    survival_2.42-6 
  [17] compiler_3.5.1   inum_1.0-0      
  > 
  > test_check("pre")
  ── 1. Failure: Get previous results with iris and pre function (@tests_pre.R#99)
  `fit` not equal to read_to_test("iris_w_pre_no_learn").
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "setosa": Attributes: < Component "i": Numeric: lengths (10, 9) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "setosa": Attributes: < Component "p": Mean relative difference: 0.1 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "setosa": Attributes: < Component "x": Numeric: lengths (10, 9) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "versicolor": Attributes: < Component "x": Mean relative difference: 0.005328678 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "virginica": Attributes: < Component "x": Mean relative difference: 0.002308178 >
  
  ── 2. Failure: Get previous results with iris and pre function (@tests_pre.R#118
  `fit2` not equal to read_to_test("iris_w_pre_no_learn_par").
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "setosa": Attributes: < Component "i": Numeric: lengths (10, 9) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "setosa": Attributes: < Component "p": Mean relative difference: 0.1 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "setosa": Attributes: < Component "x": Numeric: lengths (10, 9) differ >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "versicolor": Attributes: < Component "x": Mean relative difference: 0.005328678 >
  Component "glmnet.fit": Component "glmnet.fit": Component "beta": Component "virginica": Attributes: < Component "x": Mean relative difference: 0.002308178 >
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 92 SKIPPED: 1 FAILED: 2
  1. Failure: Get previous results with iris and pre function (@tests_pre.R#99) 
  2. Failure: Get previous results with iris and pre function (@tests_pre.R#118) 
  
  Error: testthat unit tests failed
  Execution halted