Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(greatR)
  > data.table::setDTthreads(2) # Only needed to avoid issues on CRAN
  > 
  > test_check("greatR", reporter = c("progress", "list", "fail"))
  ✔ | F W  S  OK | Context
  
  ⠏ |          0 | dynamics                                                       
  ⠋ |          1 | dynamics                                                       
  ⠸ |          4 | dynamics                                                       
  ✔ |          6 | dynamics
  
  ⠏ |          0 | optimisation                                                   
  ⠋ |          1 | optimisation                                                   
  ⠸ |          4 | optimisation                                                   
  ⠦ | 1        6 | optimisation                                                   
  ✖ | 1        6 | optimisation [1.8s]
  ────────────────────────────────────────────────────────────────────────────────
  Failure ('test-optimisation.R:23:3'): optimise works
  unname(unlist(results_sa)) (`actual`) not equal to c(2.67, -7.67, -19.51) (`expected`).
  
    `actual`: 2.9 -10.6 -19.0
  `expected`: 2.7  -7.7 -19.5
  ────────────────────────────────────────────────────────────────────────────────
  
  ⠏ |          0 | registration                                                   
  ⠸ |          4 | registration                                                   
  ⠧ |          8 | registration                                                   
  ⠸ |         14 | registration                                                   
  ⠋ |         21 | registration                                                   
  ⠏ |         30 | registration                                                   
  ⠴ |         36 | registration                                                   
  ⠦ |         37 | registration                                                   
  ⠼ |         45 | registration                                                   
  ✔ |         45 | registration [2.0s]
  
  ⠏ |          0 | results                                                        
  ⠦ |          7 | results                                                        
  ⠴ |         16 | results                                                        
  ⠹ |         23 | results                                                        
  ⠸ |         24 | results                                                        
  ⠸ |         34 | results                                                        
  ✔ |         39 | results [1.1s]
  
  ⠏ |          0 | utils-calcs                                                    
  ⠇ |          9 | utils-calcs                                                    
  ✔ |         14 | utils-calcs
  
  ⠏ |          0 | utils                                                          
  ⠋ |          1 | utils                                                          
  ⠴ |          6 | utils                                                          
  ⠋ |         11 | utils                                                          
  ⠴ |         26 | utils                                                          
  ⠙ |         32 | utils                                                          
  ⠸ |         44 | utils                                                          
  ✔ |         48 | utils [1.1s]
  
  ══ Results ═════════════════════════════════════════════════════════════════════
  Duration: 6.7 s
  
  ── Failed tests ────────────────────────────────────────────────────────────────
  Failure ('test-optimisation.R:23:3'): optimise works
  unname(unlist(results_sa)) (`actual`) not equal to c(2.67, -7.67, -19.51) (`expected`).
  
    `actual`: 2.9 -10.6 -19.0
  `expected`: 2.7  -7.7 -19.5
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 158 ]
  Error: Failures detected.
  Execution halted