Running ‘testthat.R’ [41s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(xrnet)
  > test_check("xrnet")
  ── 1. Failure: gaussian, mae (sequential) (@test-CV-errors.R#145)  ─────────────
  unname(fit_glmnet$cvm) not equal to drop(fit_xrnet$cv_mean).
  7/20 mismatches (average diff: 2.99e-07)
  [13] 1.21 - 1.21 == -6.71e-08
  [15] 1.06 - 1.06 ==  4.38e-08
  [16] 1.04 - 1.04 ==  2.67e-07
  [17] 1.05 - 1.05 ==  2.71e-07
  [18] 1.08 - 1.08 == -1.31e-06
  [19] 1.12 - 1.12 ==  5.33e-08
  [20] 1.17 - 1.17 == -7.96e-08
  
  ── 2. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#156)  ───
  unname(fit_glmnet$a0) not equal to drop(fit_xrnet$beta0)[1:length(fit_glmnet$a0)].
  1/100 mismatches
  [2] 0.532 - 0.528 == 0.00418
  
  ── 3. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#157)  ───
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.052 == 0.052
  
  ── 4. Failure: x NOT standardized, intercept (@test-soln-glmnet-binomial.R#183) 
  unname(fit_glmnet$a0) not equal to drop(fit_xrnet$beta0)[1:length(fit_glmnet$a0)].
  1/100 mismatches
  [2] 0.532 - 0.528 == 0.00418
  
  ── 5. Failure: x NOT standardized, intercept (@test-soln-glmnet-binomial.R#184) 
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.052 == 0.052
  
  ── 6. Failure: x standardized, NO intercept (@test-soln-glmnet-binomial.R#211)  
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.0505 == 0.0505
  
  ── 7. Failure: x NOT standardized, NO intercept (@test-soln-glmnet-binomial.R#24
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.0505 == 0.0505
  
  ── 8. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#266)  ───
  unname(fit_glmnet$a0) not equal to drop(fit_xrnet$beta0)[1:length(fit_glmnet$a0)].
  1/100 mismatches
  [2] 0.532 - 0.53 == 0.00216
  
  ── 9. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#267)  ───
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.0261 == 0.0261
  
  ── 10. Failure: x NOT standardized, intercept (@test-soln-glmnet-binomial.R#293)
  unname(fit_glmnet$a0) not equal to drop(fit_xrnet$beta0)[1:length(fit_glmnet$a0)].
  1/100 mismatches
  [2] 0.532 - 0.53 == 0.00207
  
  ── 11. Failure: x NOT standardized, intercept (@test-soln-glmnet-binomial.R#294)
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.0249 == 0.0249
  
  ── 12. Failure: x standardized, NO intercept (@test-soln-glmnet-binomial.R#321) 
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.0257 == 0.0257
  
  ── 13. Failure: x NOT standardized, NO intercept (@test-soln-glmnet-binomial.R#3
  unname(as.matrix(fit_glmnet$beta)) not equal to drop(fit_xrnet$betas)[, 1:length(fit_glmnet$a0)].
  1/1000 mismatches
  [16] 0 - -0.0245 == 0.0245
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 168 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 13 ]
  1. Failure: gaussian, mae (sequential) (@test-CV-errors.R#145) 
  2. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#156) 
  3. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#157) 
  4. Failure: x NOT standardized, intercept (@test-soln-glmnet-binomial.R#183) 
  5. Failure: x NOT standardized, intercept (@test-soln-glmnet-binomial.R#184) 
  6. Failure: x standardized, NO intercept (@test-soln-glmnet-binomial.R#211) 
  7. Failure: x NOT standardized, NO intercept (@test-soln-glmnet-binomial.R#240) 
  8. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#266) 
  9. Failure: x standardized, intercept (@test-soln-glmnet-binomial.R#267) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted