* using log directory 'd:/Rcompile/CRANpkg/local/4.3/zoon.Rcheck' * using R version 4.3.1 (2023-06-16 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.2.0 GNU Fortran (GCC) 12.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'zoon/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'zoon' version '0.6.5' * checking package namespace information ... OK * checking package dependencies ... NOTE Package suggested but not available for checking: 'SDMTools' * 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 'zoon' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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 ... [16s] OK * checking whether the package can be loaded with stated dependencies ... [16s] OK * checking whether the package can be unloaded cleanly ... [16s] OK * checking whether the namespace can be loaded with stated dependencies ... [15s] OK * checking whether the namespace can be unloaded cleanly ... [16s] OK * checking loading without being on the library search path ... [13s] OK * checking startup messages can be suppressed ... [15s] 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 ... [39s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [10s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... 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 ... [41s] ERROR Running 'test-all.R' [41s] Running the tests in 'tests/test-all.R' failed. Complete output: > Sys.setenv("R_TESTS" = "") > library(testthat) > test_check("zoon") Loading required package: zoon Loading required package: raster Loading required package: sp The legacy packages maptools, rgdal, and rgeos, underpinning the sp package, which was just loaded, will retire in October 2023. Please refer to R-spatial evolution reports for details, especially https://r-spatial.org/r/2023/05/15/evolution4.html. It may be desirable to make the sf package available; package maintainers should consider adding sf to Suggests:. The sp package is now running under evolution status 2 (status 2 uses the sf package in place of rgdal) Please note that rgdal will be retired during October 2023, plan transition to sf/stars/terra functions using GDAL and PROJ at your earliest convenience. See https://r-spatial.org/r/2023/05/15/evolution4.html and https://github.com/r-spatial/evolution rgdal: version: 1.6-7, (SVN revision 1203) Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 3.6.2, released 2023/01/02 Path to GDAL shared files: D:/RCompile/CRANpkg/lib/4.3/rgdal/gdal GDAL does not use iconv for recoding strings. GDAL binary built with GEOS: TRUE Loaded PROJ runtime: Rel. 9.2.0, March 1st, 2023, [PJ_VERSION: 920] Path to PROJ shared files: D:/RCompile/CRANpkg/lib/4.3/rgdal/proj PROJ CDN enabled: FALSE Linking to sp version:2.0-0 To mute warnings of possible GDAL/OSR exportToProj4() degradation, use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal. Please note that 'maptools' will be retired during October 2023, plan transition at your earliest convenience (see https://r-spatial.org/r/2023/05/15/evolution4.html and earlier blogs for guidance);some functionality will be moved to 'sp'. Checking rgeos availability: FALSE [ FAIL 4 | WARN 72 | SKIP 31 | PASS 192 ] ══ Skipped tests (31) ══════════════════════════════════════════════════════════ • On CRAN (31): 'testChangeWorkflow.R:4:3', 'testChangeWorkflow.R:32:3', 'testChangeWorkflow.R:153:3', 'testChangeWorkflow.R:230:3', 'testChangeWorkflow.R:298:3', 'testGetMaxEnt.R:6:3', 'testModuleArguments.R:4:3', 'testRerunWorkflow.R:9:3', 'testRerunWorkflow.R:29:3', 'testRerunWorkflow.R:52:3', 'testRerunWorkflow.R:99:3', 'testRerunWorkflow.R:131:3', 'testRerunWorkflow.R:163:3', 'testWholeWorkflows.R:14:3', 'testWholeWorkflows.R:47:3', 'testWholeWorkflows.R:78:3', 'testWholeWorkflows.R:109:3', 'testWholeWorkflows.R:218:3', 'testWholeWorkflows.R:260:3', 'testWholeWorkflows.R:290:3', 'testWholeWorkflows.R:426:3', 'testWholeWorkflows.R:458:3', 'testWholeWorkflows.R:525:3', 'testZoonCitation.R:4:3', 'testcall_path.R:4:3', 'testplot.zoonCitation.R:4:3', 'testplot.zoonWorkflow.r:6:3', 'testplot.zoonWorkflow.r:66:3', 'testprint.zoonWorkflow.R:4:3', 'testsummary.zoonWorkflow.R:4:3', 'testtestModule.R:4:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('testTransformCRS.R:25:3'): Expected errors ──────────────────────── `zoon:::TransformCRS(occ_data_error, "+init=epsg:27700")` threw an error with unexpected message. Expected match: "CRS provided in occurrence data" Actual message: "source crs creation failed: Invalid PROJ string syntax" Backtrace: ▆ 1. ├─testthat::expect_error(...) at testTransformCRS.R:25:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─zoon:::TransformCRS(occ_data_error, "+init=epsg:27700") 7. ├─sp::spTransform(x = LL_points, CRSobj = CRS(ras_projection)) 8. └─rgdal (local) spTransform(x = LL_points, CRSobj = CRS(ras_projection)) ── Failure ('testTransformCRS.R:29:3'): Expected errors ──────────────────────── `zoon:::TransformCRS(occ_data, "tom")` threw an error with unexpected message. Expected match: "CRS provided in covariate data" Actual message: "source crs creation failed: Invalid PROJ string syntax" Backtrace: ▆ 1. ├─testthat::expect_error(...) at testTransformCRS.R:29:2 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─zoon:::TransformCRS(occ_data, "tom") 7. ├─sp::spTransform(x = LL_points, CRSobj = CRS(ras_projection)) 8. └─rgdal (local) spTransform(x = LL_points, CRSobj = CRS(ras_projection)) ── Error ('testTransformCRS.R:62:3'): occurrence data is handled as expected when CRSs vary ── Error in `spTransform(x = LL_points, CRSobj = CRS(ras_projection))`: source crs creation failed: Invalid PROJ string syntax Backtrace: ▆ 1. └─zoon:::TransformCRS(occ_data, "+init=epsg:4326") at testTransformCRS.R:62:2 2. ├─sp::spTransform(x = LL_points, CRSobj = CRS(ras_projection)) 3. └─rgdal (local) spTransform(x = LL_points, CRSobj = CRS(ras_projection)) ── Error ('testTransformCRS.R:191:3'): Handles NA values and blanks ──────────── Error in `spTransform(x = LL_points, CRSobj = CRS(ras_projection))`: source crs creation failed: Invalid PROJ string syntax Backtrace: ▆ 1. └─zoon:::TransformCRS(occ_data, "+init=epsg:4326") at testTransformCRS.R:191:2 2. ├─sp::spTransform(x = LL_points, CRSobj = CRS(ras_projection)) 3. └─rgdal (local) spTransform(x = LL_points, CRSobj = CRS(ras_projection)) [ FAIL 4 | WARN 72 | SKIP 31 | PASS 192 ] 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 ... [2s] OK * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR, 1 NOTE