R Under development (unstable) (2024-01-26 r85832 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(raptr) + + ## 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("raptr", reporter = reporter) + } Loading required package: sf Linking to GEOS 3.11.2, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE Loading required package: terra terra 1.7.65 Attaching package: 'terra' The following objects are masked from 'package:testthat': compare, describe [ FAIL 0 | WARN 0 | SKIP 22 | PASS 309 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • On CRAN (4): 'test-01-rapr-internal-test.R:110:3', 'test-01-rapr-internal-test.R:150:3', 'test-07-DemandPoints.R:56:3', 'test-07-DemandPoints.R:79:3' • gurobi cannot be loaded (18): 'test-11-RapUnsolved.R:5:3', 'test-11-RapUnsolved.R:43:3', 'test-11-RapUnsolved.R:113:3', 'test-11-RapUnsolved.R:131:3', 'test-11-RapUnsolved.R:153:3', 'test-11-RapUnsolved.R:178:3', 'test-11-RapUnsolved.R:206:3', 'test-11-RapUnsolved.R:258:3', 'test-11-RapUnsolved.R:311:3', 'test-11-RapUnsolved.R:333:3', 'test-11-RapUnsolved.R:357:3', 'test-11-RapUnsolved.R:382:3', 'test-11-RapUnsolved.R:407:3', 'test-11-RapUnsolved.R:434:3', 'test-11-RapUnsolved.R:452:3', 'test-11-RapUnsolved.R:493:3', 'test-13-rap.R:78:3', 'test-13-rap.R:138:3' [ FAIL 0 | WARN 0 | SKIP 22 | PASS 309 ] > > proc.time() user system elapsed 30.50 3.06 33.54