Running 'testthat.R' [197s]
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.11.2, GDAL 3.8.2, PROJ 9.3.1; sf_use_s2() is TRUE
  Loading required package: nloptr
  [ FAIL 0 | WARN 0 | SKIP 67 | PASS 519 ]
  
  ══ Skipped tests (67) ══════════════════════════════════════════════════════════
  • On CRAN (31): 'test_approx_evdsi.R:4:3', 'test_approx_evdsi.R:72:3',
    'test_approx_near_optimal_survey_scheme.R:171:3',
    'test_approx_near_optimal_survey_scheme.R:218:3',
    'test_approx_optimal_survey_scheme.R:174:3',
    'test_approx_optimal_survey_scheme.R:222:3',
    'test_approx_sensible_values.R:4:3', 'test_cluster.R:4:3',
    'test_cluster.R:25:3', 'test_evdsi.R:4:3', 'test_evdsi.R:63:3',
    'test_fit_hglm_occupancy_models.R:4:3',
    'test_fit_hglm_occupancy_models.R:77:3',
    'test_fit_hglm_occupancy_models.R:150:3',
    'test_fit_xgb_occupancy_models.R:4:3',
    'test_fit_xgb_occupancy_models.R:79:3',
    'test_fit_xgb_occupancy_models.R:153:3', 'test_optimal_survey_scheme.R:4:3',
    'test_optimal_survey_scheme.R:58:3', 'test_optimal_survey_scheme.R:118:3',
    'test_optimal_survey_scheme.R:178:3', 'test_optimal_survey_scheme.R:226:3',
    'test_rcpp_approx_expected_value_of_decision_given_survey_scheme.R:4:3',
    'test_rcpp_approx_expected_value_of_decision_given_survey_scheme.R:67:3',
    'test_rcpp_expected_value_of_decision_given_survey_scheme.R:4:3',
    'test_rcpp_expected_value_of_decision_given_survey_scheme.R:57:3',
    'test_rcpp_model_performance.R:18:3', 'test_rcpp_model_performance.R:48:3',
    'test_rcpp_model_performance.R:64:3', 'test_rcpp_model_performance.R:84:3',
    'test_sensible_values.R:4:3'
  • gurobi cannot be loaded (36): 'test_approx_optimal_survey_scheme.R:4:3',
    'test_approx_optimal_survey_scheme.R:56:3',
    'test_approx_optimal_survey_scheme.R:115:3',
    'test_approx_sensible_values.R:72:3', 'test_approx_sensible_values.R:142:3',
    'test_approx_sensible_values.R:217:3', 'test_approx_sensible_values.R:303:3',
    'test_env_div_survey_scheme.R:4:3', 'test_env_div_survey_scheme.R:26:3',
    'test_env_div_survey_scheme.R:49:3', 'test_env_div_survey_scheme.R:71:3',
    'test_env_div_survey_scheme.R:93:3', 'test_env_div_survey_scheme.R:116:3',
    'test_feasible_survey_schemes.R:4:3', 'test_feasible_survey_schemes.R:22:3',
    'test_feasible_survey_schemes.R:40:3', 'test_feasible_survey_schemes.R:60:3',
    'test_feasible_survey_schemes.R:79:3', 'test_feasible_survey_schemes.R:99:3',
    'test_feasible_survey_schemes.R:117:3',
    'test_feasible_survey_schemes.R:135:3', 'test_geo_cov_survey_scheme.R:4:3',
    'test_geo_cov_survey_scheme.R:23:3', 'test_geo_cov_survey_scheme.R:44:3',
    'test_geo_cov_survey_scheme.R:64:3', 'test_geo_cov_survey_scheme.R:84:3',
    'test_geo_cov_survey_scheme.R:105:3', 'test_sensible_values.R:68:3',
    'test_sensible_values.R:137:3', 'test_sensible_values.R:211:3',
    'test_sensible_values.R:324:3', 'test_weighted_survey_scheme.R:4:3',
    'test_weighted_survey_scheme.R:25:3', 'test_weighted_survey_scheme.R:49:3',
    'test_weighted_survey_scheme.R:71:3', 'test_weighted_survey_scheme.R:93:3'
  
  [ FAIL 0 | WARN 0 | SKIP 67 | PASS 519 ]
  > 
  > proc.time()
     user  system elapsed 
    29.40    1.87   31.32