* using log directory 'd:/Rcompile/CRANpkg/local/4.6/greatR.Rcheck' * using R version 4.6.0 (2026-04-24 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-06-06 10:46:56 UTC * checking for file 'greatR/DESCRIPTION' ... OK * this is package 'greatR' version '2.1.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'greatR' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [0s] OK * checking whether startup messages can be suppressed ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [4s] OK * checking Rd files ... [0s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR 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 ⠼ | 5 | dynamics ✔ | 6 | dynamics ⠏ | 0 | optimisation ⠹ | 3 | optimisation ⠸ | 4 | optimisation ⠦ | 1 6 | optimisation ✖ | 1 6 | optimisation [1.6s] ──────────────────────────────────────────────────────────────────────────────── Failure ('test-optimisation.R:23:3'): optimise works Expected `unname(unlist(results_sa))` to equal `c(2.67, -7.67, -19.51)`. Differences: `actual`: 2.90 -10.05 -18.96 `expected`: 2.67 -7.67 -19.51 ──────────────────────────────────────────────────────────────────────────────── ⠏ | 0 | registration ⠦ | 7 | registration ⠧ | 8 | registration ⠹ | 13 | registration ⠸ | 14 | registration ⠋ | 21 | registration ⠏ | 30 | registration ⠴ | 36 | registration ⠦ | 37 | registration ⠼ | 45 | registration ✔ | 45 | registration [2.1s] ⠏ | 0 | results ⠦ | 7 | results ⠴ | 16 | results ⠙ | 22 | results ⠸ | 24 | results ⠸ | 34 | results ✔ | 39 | results [1.7s] ⠏ | 0 | utils-calcs ⠇ | 9 | utils-calcs ✔ | 14 | utils-calcs ⠏ | 0 | utils ⠋ | 1 | utils ⠼ | 5 | utils ⠴ | 16 | utils ⠦ | 27 | utils ⠙ | 42 | utils ⠸ | 44 | utils ✔ | 48 | utils [1.1s] ══ Results ═════════════════════════════════════════════════════════════════════ Duration: 7.1 s ── Failed tests ──────────────────────────────────────────────────────────────── Failure ('test-optimisation.R:23:3'): optimise works Expected `unname(unlist(results_sa))` to equal `c(2.67, -7.67, -19.51)`. Differences: `actual`: 2.90 -10.05 -18.96 `expected`: 2.67 -7.67 -19.51 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 158 ] Error in `x$end_reporter()`: ! Failures detected. Backtrace: ▆ 1. └─testthat::test_check(...) 2. └─testthat::test_dir(...) 3. └─testthat:::test_files(...) 4. └─testthat:::test_files_serial(...) 5. └─testthat::with_reporter(...) 6. └─reporter$end_reporter() 7. └─testthat:::o_apply(self$reporters, "end_reporter") 8. └─base::lapply(objects, f) 9. └─testthat (local) FUN(X[[i]], ...) 10. └─x$end_reporter(...) 11. └─testthat:::o_apply(self$reporters, "end_reporter") 12. └─base::lapply(objects, f) 13. └─testthat (local) FUN(X[[i]], ...) 14. └─x$end_reporter(...) 15. └─cli::cli_abort("Failures detected.") 16. └─rlang::abort(...) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [16s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR