Running 'testthat.R' [53s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # check if on Fedora
  > os_name <- utils::sessionInfo()$running
  > is_fedora <- TRUE
  > if (
  +   is.character(os_name) &&
  +   identical(length(os_name), 1L) &&
  +   all(!is.na(os_name))
  + ) {
  +   is_fedora <- any(grepl("fedora", tolower(os_name), fixed = TRUE))
  + }
  > 
  > # run tests (but not on Fedora systems)
  > if (isTRUE(is_fedora)) {
  +   message("skipping tests on Fedora system")
  + } else {
  +   ## load packages
  +   library(testthat)
  +   library(surveyvoi)
  + 
  +   ## enable parallel testing
  +   Sys.unsetenv("R_TESTS")
  + 
  +   ## determine reporter
  +   if (identical(Sys.getenv("CI"), "true")) {
  +     reporter <- "progress"
  +   } else {
  +     reporter <- testthat::check_reporter()
  +   }
  + 
  +   ## run tests
  +   test_check("surveyvoi", reporter = reporter)
  + }
  Loading required package: Matrix
  Loading required package: sf
  Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 7.2.1; sf_use_s2() is TRUE
  Loading required package: nloptr
  [ FAIL 2 | WARN 0 | SKIP 67 | PASS 492 ]
  
  == Skipped tests ===============================================================
  * On CRAN (31)
  * gurobi cannot be loaded (36)
  
  == Failed tests ================================================================
  -- Error ('test_create_site_folds.R:13'): expected result ----------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-surveyvoi:::create_site_folds(prop_detected, n_total, n, id) at test_create_site_folds.R:13:2
    2. | +-withr::with_seed(...)
    3. | | \-withr::with_preserve_seed(...)
    4. | \-groupdata2::partition(...)
    5. |   \-groupdata2:::run_by_group_df(...)
    6. |     \-groupdata2 (local) .fn(data, ...)
    7. |       \-groupdata2:::create_num_col_groups(...)
    8. |         \-groupdata2:::call_extreme_grouping(...)
    9. |           \-groupdata2:::numerically_balanced_group_factor_pairs_(...)
   10. |             \-data %>% ...
   11. +-rearrr::pair_extremes(...)
   12. | \-rearrr:::extreme_pairing_rearranger_(...)
   13. |   \-rearrr:::rearranger_(...)
   14. |     \-rearrr:::run_by_group(...)
   15. \-base::loadNamespace(x)
   16.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test_create_site_folds.R:38'): lots of sites with no surveys --------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-surveyvoi:::create_site_folds(prop_detected, n_total, n, id) at test_create_site_folds.R:38:2
    2. | +-withr::with_seed(...)
    3. | | \-withr::with_preserve_seed(...)
    4. | \-groupdata2::partition(...)
    5. |   \-groupdata2:::run_by_group_df(...)
    6. |     \-groupdata2 (local) .fn(data, ...)
    7. |       \-groupdata2:::create_num_col_groups(...)
    8. |         \-groupdata2:::call_extreme_grouping(...)
    9. |           \-groupdata2:::numerically_balanced_group_factor_pairs_(...)
   10. |             \-data %>% ...
   11. +-rearrr::pair_extremes(...)
   12. | \-rearrr:::extreme_pairing_rearranger_(...)
   13. |   \-rearrr:::rearranger_(...)
   14. |     \-rearrr:::run_by_group(...)
   15. \-base::loadNamespace(x)
   16.   \-base::library.dynam(lib, package, package.lib)
  
  [ FAIL 2 | WARN 0 | SKIP 67 | PASS 492 ]
  Error: Test failures
  Execution halted