Skip to content

waywiser

Ergonomic Methods for Assessing Spatial Models

v0.6.3 · Apr 15, 2025 · MIT + file LICENSE

Description

Assessing predictive models of spatial data can be challenging, both because these models are typically built for extrapolating outside the original region represented by training data and due to potential spatially structured errors, with "hot spots" of higher than expected error clustered geographically due to spatial structure in the underlying data. Methods are provided for assessing models fit to spatial data, including approaches for measuring the spatial structure of model errors, assessing model predictions at multiple spatial scales, and evaluating where predictions can be made safely. Methods are particularly useful for models fit using the 'tidymodels' framework. Methods include Moran's I ('Moran' (1950) <doi:10.2307/2332142>), Geary's C ('Geary' (1954) <doi:10.2307/2986645>), Getis-Ord's G ('Ord' and 'Getis' (1995) <doi:10.1111/j.1538-4632.1995.tb00912.x>), agreement coefficients from 'Ji' and Gallo (2006) (<doi: 10.14358/PERS.72.7.823>), agreement metrics from 'Willmott' (1981) (<doi: 10.1080/02723646.1981.10642213>) and 'Willmott' 'et' 'al'. (2012) (<doi: 10.1002/joc.2419>), an implementation of the area of applicability methodology from 'Meyer' and 'Pebesma' (2021) (<doi:10.1111/2041-210X.13650>), and an implementation of multi-scale assessment as described in 'Riemann' 'et' 'al'. (2010) (<doi:10.1016/j.rse.2010.05.010>).

Downloads

CRAN

2.8K

Last 30 days

2307th

10.5K

Last 90 days

23.6K

Last year

Trend: -33.9% (30d vs prior 30d)

r2u CRAN

2

Last 30 days

28

Last 90 days

112

Last year

Trend: -77.8% (30d vs prior 30d)

autoCRAN

5

Last 7 days

17

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [28s/18s]
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 
...[truncated]...
       └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 30, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 24, 2026
ERROR r-devel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'multi-scale-assessment.Rmd' using rmarkdown
--- finished re-building 'multi-scale-assessment.Rmd'

--- re-building 'residual-autocorrelation.Rmd' using rmarkdown
--- re-building 'waywiser.Rmd' using rmarkdown
--- finished re-building 'waywiser.Rmd'

SUMMARY: processing the following file failed:
  'residual-autocorrelation.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Code metrics have not been computed for this package yet.

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies dplyr fields FNN glue hardhat Matrix purrr rlang sf spdep tibble tidyselect vctrs yardstick sdmTMB waywiser

Version History

13 tracked
new 0.6.3 Mar 10, 2026
updated 0.6.3 ← 0.6.2 diff Apr 15, 2025
updated 0.6.2 ← 0.6.1 diff Mar 2, 2025
updated 0.6.1 ← 0.6.0 diff Feb 16, 2025
updated 0.6.0 ← 0.5.1 diff Jun 26, 2024
updated 0.5.1 ← 0.5.0 diff Oct 30, 2023
updated 0.5.0 ← 0.4.2 diff Oct 15, 2023
updated 0.4.2 ← 0.4.1 diff Jul 19, 2023
updated 0.4.1 ← 0.4.0 diff Jul 2, 2023
updated 0.4.0 ← 0.3.0 diff May 16, 2023
updated 0.3.0 ← 0.2.0 diff Mar 18, 2023
updated 0.2.0 ← 0.1.0 diff Oct 22, 2022
new 0.1.0 Aug 9, 2022