Running 'testthat.R' [28s/31s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(circumplex)
  > 
  > test_check("circumplex")
  -- 1. Failure: Single-group mean-based SSM results are correct (@test-ssm_analys
  round(res$results$e_lci, 3) not equal to 0.131.
  1/1 mismatches
  [1] 0.129 - 0.131 == -0.002
  
  -- 2. Failure: Single-group mean-based SSM results are correct (@test-ssm_analys
  round(res$results$e_uci, 3) not equal to 0.702.
  1/1 mismatches
  [1] 0.708 - 0.702 == 0.006
  
  -- 3. Failure: Single-group mean-based SSM results are correct (@test-ssm_analys
  round(res$results$x_uci, 3) not equal to 1.235.
  1/1 mismatches
  [1] 1.25 - 1.24 == 0.016
  
  -- 4. Failure: Single-group mean-based SSM results are correct (@test-ssm_analys
  round(res$results$y_lci, 3) not equal to -0.829.
  1/1 mismatches
  [1] -0.946 - -0.829 == -0.117
  
  -- 5. Failure: Single-group mean-based SSM results are correct (@test-ssm_analys
  round(res$results$a_uci, 3) not equal to 1.37.
  1/1 mismatches
  [1] 1.4 - 1.37 == 0.033
  
  -- 6. Failure: Single-group mean-based SSM results are correct (@test-ssm_analys
  as.vector(round(res$results$d_uci, 3)) not equal to 17.194.
  1/1 mismatches
  [1] 17.2 - 17.2 == -0.003
  
  -- 7. Failure: Single-group correlation-based SSM results are correct (@test-ssm
  round(res$results$e_uci, 3) not equal to 0.28.
  1/1 mismatches
  [1] 0.282 - 0.28 == 0.002
  
  -- 8. Failure: Single-group correlation-based SSM results are correct (@test-ssm
  round(res$results$x_lci, 3) not equal to -0.129.
  1/1 mismatches
  [1] -0.128 - -0.129 == 0.001
  
  -- 9. Failure: Single-group correlation-based SSM results are correct (@test-ssm
  round(res$results$x_uci, 3) not equal to -0.06.
  1/1 mismatches
  [1] -0.062 - -0.06 == -0.002
  
  -- 10. Failure: Single-group correlation-based SSM results are correct (@test-ss
  round(res$results$a_lci, 3) not equal to 0.115.
  1/1 mismatches
  [1] 0.113 - 0.115 == -0.002
  
  -- 11. Failure: Single-group correlation-based SSM results are correct (@test-ss
  as.vector(round(res$results$d_lci, 3)) not equal to 115.894.
  1/1 mismatches
  [1] 117 - 116 == 1.37
  
  -- 12. Failure: Single-group correlation-based SSM results are correct (@test-ss
  as.vector(round(res$results$d_uci, 3)) not equal to 142.094.
  1/1 mismatches
  [1] 142 - 142 == -0.498
  
  -- 13. Failure: score works (@test-tidying_functions.R#36)  --------------------
  new$PA not equal to c(3, 2.5, 1.75, 2.5, 1.5).
  5/5 mismatches (average diff: 1.55)
  [1] 0.50 - 3.00 == -2.50
  [2] 1.25 - 2.50 == -1.25
  [3] 2.00 - 1.75 ==  0.25
  [4] 0.75 - 2.50 == -1.75
  [5] 3.50 - 1.50 ==  2.00
  
  -- 14. Failure: score works (@test-tidying_functions.R#37)  --------------------
  new$BC not equal to c(1.5, 2.25, 1, 2, 2.5).
  5/5 mismatches (average diff: 0.65)
  [1] 1.75 - 1.50 ==  0.25
  [2] 0.75 - 2.25 == -1.50
  [3] 1.50 - 1.00 ==  0.50
  [4] 1.75 - 2.00 == -0.25
  [5] 1.75 - 2.50 == -0.75
  
  -- 15. Failure: score works (@test-tidying_functions.R#38)  --------------------
  new$DE not equal to c(2, 2.75, 2, 1.75, 2.75).
  5/5 mismatches (average diff: 0.5)
  [1] 1.75 - 2.00 == -0.25
  [2] 2.25 - 2.75 == -0.50
  [3] 1.75 - 2.00 == -0.25
  [4] 3.00 - 1.75 ==  1.25
  [5] 3.00 - 2.75 ==  0.25
  
  -- 16. Failure: score works (@test-tidying_functions.R#39)  --------------------
  new$FG not equal to c(2.5, 2.5, 1.25, 0.5, 2.5).
  4/5 mismatches (average diff: 1.19)
  [2] 1.75 - 2.50 == -0.75
  [3] 3.50 - 1.25 ==  2.25
  [4] 1.50 - 0.50 ==  1.00
  [5] 1.75 - 2.50 == -0.75
  
  -- 17. Failure: score works (@test-tidying_functions.R#40)  --------------------
  new$HI not equal to c(2, 2, 3.25, 3, 2.25).
  5/5 mismatches (average diff: 0.55)
  [1] 2.25 - 2.00 ==  0.25
  [2] 2.25 - 2.00 ==  0.25
  [3] 3.00 - 3.25 == -0.25
  [4] 2.00 - 3.00 == -1.00
  [5] 1.25 - 2.25 == -1.00
  
  -- 18. Failure: score works (@test-tidying_functions.R#41)  --------------------
  new$JK not equal to c(2.5, 3.5, 2, 2.25, 2).
  4/5 mismatches (average diff: 0.625)
  [1] 1.50 - 2.5 == -1.00
  [2] 2.50 - 3.5 == -1.00
  [3] 1.75 - 2.0 == -0.25
  [5] 1.75 - 2.0 == -0.25
  
  -- 19. Failure: score works (@test-tidying_functions.R#42)  --------------------
  new$LM not equal to c(3.25, 1.25, 1.75, 1.5, 1.25).
  5/5 mismatches (average diff: 0.85)
  [1] 2.00 - 3.25 == -1.25
  [2] 2.50 - 1.25 ==  1.25
  [3] 1.50 - 1.75 == -0.25
  [4] 2.75 - 1.50 ==  1.25
  [5] 1.50 - 1.25 ==  0.25
  
  -- 20. Failure: score works (@test-tidying_functions.R#43)  --------------------
  new$NO not equal to c(2.75, 3.75, 2.75, 2.25, 1).
  4/5 mismatches (average diff: 1.31)
  [1] 1.75 - 2.75 == -1.00
  [2] 2.00 - 3.75 == -1.75
  [3] 1.75 - 2.75 == -1.00
  [5] 2.50 - 1.00 ==  1.50
  
  == testthat results  ===========================================================
  OK: 166 SKIPPED: 6 FAILED: 20
  1. Failure: Single-group mean-based SSM results are correct (@test-ssm_analysis.R#20) 
  2. Failure: Single-group mean-based SSM results are correct (@test-ssm_analysis.R#21) 
  3. Failure: Single-group mean-based SSM results are correct (@test-ssm_analysis.R#23) 
  4. Failure: Single-group mean-based SSM results are correct (@test-ssm_analysis.R#24) 
  5. Failure: Single-group mean-based SSM results are correct (@test-ssm_analysis.R#27) 
  6. Failure: Single-group mean-based SSM results are correct (@test-ssm_analysis.R#29) 
  7. Failure: Single-group correlation-based SSM results are correct (@test-ssm_analysis.R#201) 
  8. Failure: Single-group correlation-based SSM results are correct (@test-ssm_analysis.R#202) 
  9. Failure: Single-group correlation-based SSM results are correct (@test-ssm_analysis.R#203) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted