Running 'testthat.R' [2s/3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(FTRLProximal)
  > 
  > test_check("FTRLProximal")
  -- 1. Failure: Parameter values (@test_ftrlprox_formula.r#18)  -----------------
  coefs[1] not equal to -0.110366358105649.
  1/1 mismatches
  [1] -0.0562 - -0.11 == 0.0542
  
  -- 2. Failure: Parameter values (@test_ftrlprox_formula.r#19)  -----------------
  coefs[2] not equal to -1.30338237293572.
  1/1 mismatches
  [1] -1.4 - -1.3 == -0.095
  
  -- 3. Failure: Parameter values (@test_ftrlprox_formula.r#20)  -----------------
  coefs[3] not equal to -1.16987440346312.
  1/1 mismatches
  [1] -1.12 - -1.17 == 0.0463
  
  -- 4. Failure: Params are 0 for random factor using some L1 reg (@test_ftrlprox_
  coefs[[2]] not equal to -1.1553921694535.
  1/1 mismatches
  [1] -1.24 - -1.16 == -0.0869
  
  -- 5. Failure: Params are 0 for random factor using some L1 reg (@test_ftrlprox_
  coefs[[3]] not equal to -1.09002332655129.
  1/1 mismatches
  [1] -1.05 - -1.09 == 0.0356
  
  -- 6. Failure: Parameter values (@test_ftrlprox_matrix.r#23)  ------------------
  coefs[1] not equal to -0.0191484856739.
  1/1 mismatches
  [1] 0.113 - -0.0191 == 0.132
  
  -- 7. Failure: Parameter values (@test_ftrlprox_matrix.r#24)  ------------------
  coefs[2] not equal to -1.7695263198419.
  1/1 mismatches
  [1] -1.76 - -1.77 == 0.0109
  
  -- 8. Failure: Parameter values (@test_ftrlprox_matrix.r#25)  ------------------
  coefs[3] not equal to -1.6557359972582.
  1/1 mismatches
  [1] -1.56 - -1.66 == 0.0972
  
  -- 9. Failure: Parameter values for alpha=0.5 (@test_ftrlprox_matrix.r#67)  ----
  coefs[1] not equal to -0.0191484856739.
  1/1 mismatches
  [1] 0.113 - -0.0191 == 0.132
  
  -- 10. Failure: Parameter values for alpha=0.5 (@test_ftrlprox_matrix.r#68)  ---
  coefs[2] not equal to -1.7695263198419.
  1/1 mismatches
  [1] -1.76 - -1.77 == 0.0109
  
  -- 11. Failure: Parameter values for alpha=0.5 (@test_ftrlprox_matrix.r#69)  ---
  coefs[3] not equal to -1.6557359972582.
  1/1 mismatches
  [1] -1.56 - -1.66 == 0.0972
  
  -- 12. Failure: Parameter values (@test_ftrlprox_sparse.r#23)  -----------------
  coefs[1] not equal to 0.4315879.
  1/1 mismatches
  [1] 0.565 - 0.432 == 0.133
  
  -- 13. Failure: Parameter values (@test_ftrlprox_sparse.r#24)  -----------------
  coefs[2] not equal to -1.03684703429153.
  1/1 mismatches
  [1] -0.936 - -1.04 == 0.101
  
  -- 14. Failure: Parameter values (@test_ftrlprox_sparse.r#25)  -----------------
  coefs[3] not equal to -0.918381020470813.
  1/1 mismatches
  [1] -0.923 - -0.918 == -0.00414
  
  -- 15. Failure: Parameter values after update (@test_initialize_ftrlprox.r#42)  
  `coefs` not equal to `expected`.
  3/3 mismatches (average diff: 0.0652)
  [1] -0.0562 - -0.11 ==  0.0542
  [2] -1.3984 - -1.30 == -0.0950
  [3] -1.1236 - -1.17 ==  0.0463
  
  -- 16. Failure: Default print (@test_print.r#16)  ------------------------------
  `print\(mdl\)` does not match "Coefficients:\\s+\\(Intercept\\)\\s+-0.00677584\\s+x\\.1\\s+-1.75985861\\s+x\\.2\\s+-1.64894623\\s+x\\.3\\s+\\.".
  Actual value: "\\nCoefficients:                      \\n\(Intercept\)  0\.0807163\\nx\.1         -1\.7484594\\nx\.2         -1\.5567184\\nx\.3          \.        \\n"
  
  -- 17. Failure: Print 3 digits (@test_print.r#23)  -----------------------------
  `print\(mdl, digits = 3\)` does not match "Coefficients:\\s+\\(Intercept\\)\\s+-0.00678\\s+x\\.1\\s+-1.75986\\s+x\\.2\\s+-1.64895\\s+x\\.3\\s+\\.".
  Actual value: "\\nCoefficients:                     \\n\(Intercept\)    0\.0807\\nx\.1           -1\.7485\\nx\.2           -1\.5567\\nx\.3         \.        \\n"
  
  -- 18. Failure: Print 3 digits and  (@test_print.r#29)  ------------------------
  `print\(mdl, digits = 3, zero\.print = "z"\)` does not match "Coefficients:\\s+\\(Intercept\\)\\s+-0.00678\\s+x\\.1\\s+-1.75986\\s+x\\.2\\s+-1.64895\\s+x\\.3\\s+z".
  Actual value: "\\nCoefficients:                     \\n\(Intercept\)    0\.0807\\nx\.1           -1\.7485\\nx\.2           -1\.5567\\nx\.3         z        \\n"
  
  -- 19. Failure: Parameter values (@test_update_ftrlprox.r#25)  -----------------
  coefs[1] not equal to -0.110366358105649.
  1/1 mismatches
  [1] -0.0562 - -0.11 == 0.0542
  
  -- 20. Failure: Parameter values (@test_update_ftrlprox.r#26)  -----------------
  coefs[2] not equal to -1.30338237293572.
  1/1 mismatches
  [1] -1.4 - -1.3 == -0.095
  
  -- 21. Failure: Parameter values (@test_update_ftrlprox.r#27)  -----------------
  coefs[3] not equal to -1.16987440346312.
  1/1 mismatches
  [1] -1.12 - -1.17 == 0.0463
  
  -- 22. Failure: Parameter values trained on sparse matrix (@test_update_ftrlprox
  `coefs` not equal to `expected`.
  3/3 mismatches (average diff: 0.0652)
  [1] -0.0562 - -0.11 ==  0.0542
  [2] -1.3984 - -1.30 == -0.0950
  [3] -1.1236 - -1.17 ==  0.0463
  
  == testthat results  ===========================================================
  OK: 60 SKIPPED: 0 FAILED: 22
  1. Failure: Parameter values (@test_ftrlprox_formula.r#18) 
  2. Failure: Parameter values (@test_ftrlprox_formula.r#19) 
  3. Failure: Parameter values (@test_ftrlprox_formula.r#20) 
  4. Failure: Params are 0 for random factor using some L1 reg (@test_ftrlprox_formula.r#53) 
  5. Failure: Params are 0 for random factor using some L1 reg (@test_ftrlprox_formula.r#54) 
  6. Failure: Parameter values (@test_ftrlprox_matrix.r#23) 
  7. Failure: Parameter values (@test_ftrlprox_matrix.r#24) 
  8. Failure: Parameter values (@test_ftrlprox_matrix.r#25) 
  9. Failure: Parameter values for alpha=0.5 (@test_ftrlprox_matrix.r#67) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted