# \donttest{
library(blockCV)
points <- read.csv(system.file("extdata/", "species.csv", package = "blockCV"))
pa_data <- sf::st_as_sf(points, coords = c("x", "y"), crs = 7845)
covar <- terra::rast(system.file("extdata/au/bio_5.tif", package = "blockCV"))
sb <- cv_spatial(x = pa_data, column = "occ", size = 450000, k = 5, iteration = 1)
# structural summary + warnings only (no raster)
cv_summary(sb)
# add the distance and novelty diagnostics
cv_summary(sb, x = pa_data, r = covar, num_sample = 5000)
# }
Run the code above in your browser using DataLab