* using log directory 'd:/RCompile/CRANincoming/R-devel/changeRangeR.Rcheck' * using R Under development (unstable) (2023-10-16 r85339 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'changeRangeR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'changeRangeR' version '1.1.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Mary E. Blair ' New submission Package was archived on CRAN Possibly misspelled words in DESCRIPTION: IUCN (17:360) complementarity (17:634) endemism (17:533) phylogenetic (17:498) reproducibly (17:39) CRAN repository db overrides: X-CRAN-Comment: Archived on 2023-10-16 as requires archived package 'rgeos'. Suggests or Enhances not in mainstream repositories: wallace * 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 'changeRangeR' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [19s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [21s] ERROR Running 'testthat.R' [20s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(changeRangeR) To get started with multiple species, see the demo with vignette(package='changeRangeR') > > test_check("changeRangeR") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 20 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_mcpSDM.R:12:1'): (code run outside of `test_that()`) ─────────── Error in `wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, check = check, tessellate_tol = if (planar) { tessellate_tol_m/s2_earth_radius_meters() } else { Inf }))`: Loop 0 is not valid: Edge 0 crosses edge 2 Backtrace: ▆ 1. └─changeRangeR::mcpSDM(p, xy, ch.orig, thr) at test_mcpSDM.R:12:0 2. ├─sf::st_intersection(ch.i.sf, sf::st_as_sf(ch.orig)) 3. └─sf:::st_intersection.sf(ch.i.sf, sf::st_as_sf(ch.orig)) 4. ├─sf:::geos_op2_df(x, y, geos_op2_geom("intersection", x, y, ...)) 5. └─sf:::geos_op2_geom("intersection", x, y, ...) 6. ├─base::structure(...) 7. ├─base::unlist(...) 8. └─base::lapply(...) 9. └─sf (local) FUN(X[[i]], ...) 10. └─s2 (local) fn(x, yy, s2::s2_options(model = model, ...)) 11. ├─s2:::recycle_common(as_s2_geography(x), as_s2_geography(y)) 12. ├─s2::as_s2_geography(y) 13. └─sf:::as_s2_geography.sfg(y) 14. ├─s2::as_s2_geography(b, ..., oriented = oriented) 15. └─s2:::as_s2_geography.WKB(b, ..., oriented = oriented) 16. └─s2::s2_geog_from_wkb(x, oriented = oriented, check = check) 17. ├─wk::wk_handle(...) 18. └─wk:::wk_handle.wk_wkb(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 20 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [87s] OK * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE