Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > ## use shift-cmd-t to run all tests
  > library(testthat)
  > test_check("radiant.model")
  Loading required package: radiant.model
  Loading required package: radiant.data
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  Loading required package: ggplot2
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  Loading required package: tidyr
  
  Attaching package: 'tidyr'
  
  The following object is masked from 'package:magrittr':
  
      extract
  
  The following object is masked from 'package:testthat':
  
      matches
  
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'radiant.data'
  
  The following objects are masked from 'package:lubridate':
  
      month, wday
  
  The following object is masked from 'package:ggplot2':
  
      diamonds
  
  The following object is masked from 'package:testthat':
  
      describe
  
  The following object is masked from 'package:base':
  
      date
  
  carat           8438.030    51.101 165.125  < .001 ***
  -- 1. Failure: regress (@test_stats.R#23)  -------------------------------------
  `res1` not equal to `res2`.
  2/24 mismatches
  x[22]: "F-statistic: 3530.024 df(7,2991), p.value < .001"
  y[22]: "F-statistic: 3530.024 df(8,2991), p.value < .001"
  
  x[23]: "Nr obs: 2,999"
  y[23]: "Nr obs: 3,000"
  
  SI1     9 114304.420 104924.680 123684.159  9379.739
  sex|male    0.080 -92.0%      -2.522     0.163 -15.447  < .001 ***
  2nd female      0.779 0.712 0.833
  1st female      0.896 0.856 0.926
  1st female 29.000      0.919 0.880 0.945
  == testthat results  ===========================================================
  [ OK: 24 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Failure: regress (@test_stats.R#23) 
  
  Error: testthat unit tests failed
  Execution halted