Running ‘testthat.R’ [9s/11s]
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                                                       
  ⠙ |          2 | dynamics                                                       
  ✔ |          4 | dynamics
  
  ⠏ |          0 | optimisation                                                   
  ⠋ |          1 | optimisation                                                   
  ⠸ |          4 | optimisation                                                   
  ⠦ | 1        6 | optimisation                                                   
  ✖ | 1        6 | optimisation [2.5s]
  ────────────────────────────────────────────────────────────────────────────────
  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.90 -10.45 -19.00
  `expected`: 2.67  -7.67 -19.51
  ────────────────────────────────────────────────────────────────────────────────
  
  ⠏ |          0 | registration                                                   
  ⠧ |          8 | registration                                                   
  ⠹ |         13 | registration                                                   
  ⠸ |         14 | registration                                                   
  ⠋ |         21 | registration                                                   
  ⠇ |         29 | registration                                                   
  ⠏ |         30 | registration                                                   
  ⠴ |         36 | registration                                                   
  ⠦ |         37 | registration                                                   
  ⠼ |         45 | registration                                                   
  ✔ |         45 | registration [2.9s]
  
  ⠏ |          0 | results                                                        
  ⠴ |          6 | results                                                        
  ⠦ |          7 | results                                                        
  ⠴ |         16 | results                                                        
  ⠙ |         22 | results                                                        
  ⠹ |         23 | results                                                        
  ⠹ |         33 | results                                                        
  ✔ |         38 | results [1.8s]
  
  ⠏ |          0 | utils-calcs                                                    
  ⠇ |          9 | utils-calcs                                                    
  ✔ |         14 | utils-calcs
  
  ⠏ |          0 | utils                                                          
  ⠋ |          1 | utils                                                          
  ⠴ |          6 | utils                                                          
  ⠇ |          9 | utils                                                          
  ⠇ |         19 | utils                                                          
  ⠴ |         26 | utils                                                          
  ⠧ |         38 | utils                                                          
  ⠹ |         43 | utils                                                          
  ⠦ |         47 | utils                                                          
  ✔ |         47 | utils [2.0s]
  
  ══ Results ═════════════════════════════════════════════════════════════════════
  Duration: 10.2 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.90 -10.45 -19.00
  `expected`: 2.67  -7.67 -19.51
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 154 ]
  Error: Failures detected.
  Execution halted