R Under development (unstable) (2024-02-15 r85925 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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 17.43 0.96 18.39