- using R version 4.6.0 (2026-04-24)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-17) 15.2.0
GNU Fortran (Debian 15.2.0-17) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-05-09 12:09:13 UTC
- checking for file ‘geonuts/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘geonuts’ version ‘1.0.1’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘geonuts’ can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [3s/5s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/4s] OK
- checking whether the package can be unloaded cleanly ... [3s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s/4s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/4s] OK
- checking loading without being on the library search path ... [3s/4s] 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 ... [16s/20s] OK
- checking Rd files ... [0s/0s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/5s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/58s] ERROR
Running ‘testthat.R’ [6s/58s]
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(geonuts)
>
> test_check("geonuts")
Saving _problems/test-get_nuts-44.R
Saving _problems/test-get_nuts-63.R
Saving _problems/test-get_nuts-83.R
Saving _problems/test-map_nuts-41.R
Saving _problems/test-map_nuts-53.R
Saving _problems/test-map_nuts-65.R
Saving _problems/test-map_nuts-77.R
Saving _problems/test-map_nuts-95.R
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 4 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get_nuts.R:39:3'): get_nuts() returns expected structure for single level ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-get_nuts.R:39:3
2. └─geonuts (local) .match_level(as.integer(level))
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
── Error ('test-get_nuts.R:58:3'): get_nuts(level = 'all') returns all levels and metadata ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-get_nuts.R:58:3
2. └─geonuts (local) .match_level(0)
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
── Error ('test-get_nuts.R:76:3'): get_nuts(match_strategy = 'nearest') assigns nearest region over water ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-get_nuts.R:76:3
2. └─geonuts (local) .match_level(as.integer(level))
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
── Error ('test-map_nuts.R:36:3'): map_nuts() returns a ggplot object for single level results ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-map_nuts.R:36:3
2. └─geonuts (local) .match_level(as.integer(level))
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
── Error ('test-map_nuts.R:48:3'): map_nuts() works with level = 'all' outputs ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-map_nuts.R:48:3
2. └─geonuts (local) .match_level(0)
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
── Error ('test-map_nuts.R:60:3'): map_nuts() correctly filters by country code ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-map_nuts.R:60:3
2. └─geonuts (local) .match_level(as.integer(level))
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
── Error ('test-map_nuts.R:72:3'): map_nuts() handles missing points gracefully ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-map_nuts.R:72:3
2. └─geonuts (local) .match_level(as.integer(level))
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
── Error ('test-map_nuts.R:90:3'): map_nuts() throws informative errors for malformed input ──
Error in `UseMethod("st_make_valid")`: no applicable method for 'st_make_valid' applied to an object of class "NULL"
Backtrace:
▆
1. └─geonuts::get_nuts(...) at test-map_nuts.R:90:3
2. └─geonuts (local) .match_level(as.integer(level))
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 4 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/16s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘geonuts-demo.Rmd’ using rmarkdown
Quitting from geonuts-demo.Rmd:27-45 [example-getnuts]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'st_make_valid' applied to an object of class "NULL"
---
Backtrace:
▆
1. └─geonuts::get_nuts(...)
2. └─geonuts (local) .match_level(0)
3. ├─base::suppressWarnings(sf::st_make_valid(shp))
4. │ └─base::withCallingHandlers(...)
5. └─sf::st_make_valid(shp)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'geonuts-demo.Rmd' failed with diagnostics:
no applicable method for 'st_make_valid' applied to an object of class "NULL"
--- failed re-building ‘geonuts-demo.Rmd’
SUMMARY: processing the following file failed:
‘geonuts-demo.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/7s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs