- using R Under development (unstable) (2026-08-20 r90438)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2)
GNU Fortran (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2)
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-08-20 11:49:14 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘forestecology/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘forestecology’ version ‘0.2.2’
- 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 ‘forestecology’ can be installed ... [10s/26s] OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [10s/25s] OK
- checking Rd files ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... 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/24s] ERROR
Running examples in ‘forestecology-Ex.R’ failed
The error most likely occurred in:
> ### Name: growth_ex
> ### Title: Example growth data frame for small example
> ### Aliases: growth_ex
> ### Keywords: datasets
>
> ### ** Examples
>
> library(ggplot2)
> library(dplyr)
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
> library(sf)
Linking to GEOS 3.14.1, GDAL 3.12.4, PROJ 9.8.1; sf_use_s2() is TRUE
> library(sfheaders)
> library(blockCV)
blockCV 4.0.0
>
> growth_ex %>%
+ ggplot() +
+ geom_sf()
>
> growth_ex %>%
+ group_by(sp) %>%
+ summarize(mean(growth))
Simple feature collection with 2 features and 2 fields
Geometry type: MULTIPOINT
Dimension: XY
Bounding box: xmin: 0.75 ymin: 0.75 xmax: 8.75 ymax: 4.5
CRS: NA
# A tibble: 2 × 3
sp `mean(growth)` geometry
<fct> <dbl> <MULTIPOINT>
1 american_beech NA ((1.5 2.5), (3 1.5), (5.5 4.5), (8.5 0.75), (8.…
2 sugar_maple 0.920 ((0.75 2.5), (1.75 2.25), (3.25 1.75), (8 1.5),…
>
> # Add buffer
> growth_spatial_ex <- growth_ex %>%
+ add_buffer_variable(direction = "in", size = 1, region = study_region_ex)
>
> # Add cross-validation folds
> fold1 <- rbind(c(0, 0), c(5, 0), c(5, 5), c(0, 5), c(0, 0))
> fold2 <- rbind(c(5, 0), c(10, 0), c(10, 5), c(5, 5), c(5, 0))
> blocks <- bind_rows(
+ sf_polygon(fold1),
+ sf_polygon(fold2)
+ ) %>%
+ mutate(foldID = c(1, 2))
>
> SpatialBlock_ex <- spatialBlock(
+ speciesData = growth_ex,
+ verbose = FALSE,
+ k = 2,
+ selection = "systematic",
+ blocks = blocks
+ )
Error in spatialBlock(speciesData = growth_ex, verbose = FALSE, k = 2, :
could not find function "spatialBlock"
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(forestecology)
>
> test_check("forestecology")
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
blockCV 4.0.0
Saving _problems/test-readme-45.R
[ FAIL 1 | WARN 2 | SKIP 0 | PASS 11 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-readme.R:42:3'): readme code works ─────────────────────────────
<functionNotFoundError/objectNotFoundError/error/condition>
Error in `spatialBlock(speciesData = growth_ex, k = 2, selection = "systematic", blocks = blocks_ex, showBlocks = FALSE, verbose = FALSE)`: could not find function "spatialBlock"
[ FAIL 1 | WARN 2 | SKIP 0 | PASS 11 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [10s/24s] ERROR
Error(s) in re-building vignettes:
--- re-building ‘forestecology.Rmd’ using rmarkdown
Quitting from forestecology.Rmd:130-138 [unnamed-chunk-8]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! 'spatialBlock' is not an exported object from 'namespace:blockCV'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'forestecology.Rmd' failed with diagnostics:
'spatialBlock' is not an exported object from 'namespace:blockCV'
--- failed re-building ‘forestecology.Rmd’
SUMMARY: processing the following file failed:
‘forestecology.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 3 ERRORs