- using R version 4.4.3 (2025-02-28 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'GeoThinneR/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'GeoThinneR' version '2.1.0'
- package encoding: UTF-8
- 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 'GeoThinneR' can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] 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 ... [4s] 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 ... [1s] 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 ... [11s] ERROR
Running examples in 'GeoThinneR-Ex.R' failed
The error most likely occurred in:
> ### Name: grid_thinning
> ### Title: Perform Grid-Based Thinning of Spatial Points
> ### Aliases: grid_thinning
>
> ### ** Examples
>
> # Example: Grid thinning using thin_dist
> coords <- matrix(c(-122.4194, 37.7749,
+ -122.4195, 37.7740,
+ -122.4196, 37.7741), ncol = 2, byrow = TRUE)
>
> result <- grid_thinning(coords, thin_dist = 10, trials = 5, all_trials = TRUE)
Warning: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1)
Error: [rast] empty srs
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [16s] ERROR
Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(GeoThinneR)
>
> test_check("GeoThinneR")
Saving _problems/test-grid_thinning-8.R
Saving _problems/test-grid_thinning-15.R
terra 1.8.86
Attaching package: 'terra'
The following objects are masked from 'package:testthat':
compare, describe
Saving _problems/test-grid_thinning-32.R
Saving _problems/test-grid_thinning-39.R
Saving _problems/test-grid_thinning-56.R
Starting spatial thinning at 2025-12-05 11:22:04
Thinning using method: distance
Thinning process completed.
Total execution time: 0.09 seconds
Saving _problems/test-thin_points-46.R
[ FAIL 6 | WARN 6 | SKIP 0 | PASS 99 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-grid_thinning.R:8:3'): grid_thinning works with thin_dist ──────
Error: [rast] empty srs
Backtrace:
▆
1. └─GeoThinneR::grid_thinning(...) at test-grid_thinning.R:8:3
2. ├─terra::rast(...)
3. └─terra::rast(...)
4. └─terra (local) .local(x = x, ...)
5. └─terra:::new_rast(...)
6. └─terra:::messages(r, "rast")
7. └─terra:::error(f, x@pntr$getError())
── Error ('test-grid_thinning.R:15:3'): grid_thinning works with resolution ────
Error: [rast] empty srs
Backtrace:
▆
1. └─GeoThinneR::grid_thinning(...) at test-grid_thinning.R:15:3
2. ├─terra::rast(...)
3. └─terra::rast(...)
4. └─terra (local) .local(x = x, ...)
5. └─terra:::new_rast(...)
6. └─terra:::messages(r, "rast")
7. └─terra:::error(f, x@pntr$getError())
── Error ('test-grid_thinning.R:32:3'): grid_thinning returns multiple trials when all_trials = TRUE ──
Error: [rast] empty srs
Backtrace:
▆
1. └─GeoThinneR::grid_thinning(...) at test-grid_thinning.R:32:3
2. ├─terra::rast(...)
3. └─terra::rast(...)
4. └─terra (local) .local(x = x, ...)
5. └─terra:::new_rast(...)
6. └─terra:::messages(r, "rast")
7. └─terra:::error(f, x@pntr$getError())
── Error ('test-grid_thinning.R:39:3'): grid_thinning works with priority ──────
Error: [rast] empty srs
Backtrace:
▆
1. └─GeoThinneR::grid_thinning(...) at test-grid_thinning.R:39:3
2. ├─terra::rast(...)
3. └─terra::rast(...)
4. └─terra (local) .local(x = x, ...)
5. └─terra:::new_rast(...)
6. └─terra:::messages(r, "rast")
7. └─terra:::error(f, x@pntr$getError())
── Error ('test-grid_thinning.R:56:3'): grid_thinning invalid input ────────────
Error: [rast] empty srs
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-grid_thinning.R:56:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─GeoThinneR::grid_thinning(...)
8. ├─terra::rast(...)
9. └─terra::rast(...)
10. └─terra (local) .local(x = x, ...)
11. └─terra:::new_rast(...)
12. └─terra:::messages(r, "rast")
13. └─terra:::error(f, x@pntr$getError())
── Error ('test-thin_points.R:46:3'): thin_points works with grid thinning ─────
Error: [rast] empty srs
Backtrace:
▆
1. └─GeoThinneR::thin_points(...) at test-thin_points.R:46:3
2. └─GeoThinneR (local) perform_thinning(data)
3. └─GeoThinneR::grid_thinning(...)
4. ├─terra::rast(...)
5. └─terra::rast(...)
6. └─terra (local) .local(x = x, ...)
7. └─terra:::new_rast(...)
8. └─terra:::messages(r, "rast")
9. └─terra:::error(f, x@pntr$getError())
[ FAIL 6 | WARN 6 | SKIP 0 | PASS 99 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [33s] ERROR
Error(s) in re-building vignettes:
--- re-building 'GeoThinneR.Rmd' using rmarkdown
Quitting from GeoThinneR.Rmd:308-322 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! [rast] empty srs
---
Backtrace:
▆
1. ├─base::system.time(...)
2. └─GeoThinneR::thin_points(...)
3. └─GeoThinneR (local) perform_thinning(data)
4. └─GeoThinneR::grid_thinning(...)
5. ├─terra::rast(...)
6. └─terra::rast(...)
7. └─terra (local) .local(x = x, ...)
8. └─terra:::new_rast(...)
9. └─terra:::messages(r, "rast")
10. └─terra:::error(f, x@pntr$getError())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'GeoThinneR.Rmd' failed with diagnostics:
[rast] empty srs
--- failed re-building 'GeoThinneR.Rmd'
SUMMARY: processing the following file failed:
'GeoThinneR.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 3 ERRORs