- 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 'rLakeHabitat/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'rLakeHabitat' 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'rLakeHabitat' 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 ... [11s] OK
- checking whether the package can be loaded with stated dependencies ... [11s] OK
- checking whether the package can be unloaded cleanly ... [11s] OK
- checking whether the namespace can be loaded with stated dependencies ... [11s] OK
- checking whether the namespace can be unloaded cleanly ... [12s] OK
- checking loading without being on the library search path ... [12s] 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 ... [29s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [19s] ERROR
Running examples in 'rLakeHabitat-Ex.R' failed
The error most likely occurred in:
> ### Name: crossValidate
> ### Title: Cross Validate Interpolated Bathymetry
> ### Aliases: crossValidate
>
> ### ** Examples
>
> #load example outline
> outline <- terra::vect(system.file("extdata", "example_outline.shp", package = 'rLakeHabitat'))
Warning: PROJ: proj_identify: Cannot find proj.db (GDAL error 1)
Warning: [vect] Z coordinates ignored
> #load example xyz data
> data <- read.csv(system.file("extdata", "example_depths.csv", package = 'rLakeHabitat'))
> #run function
> crossValidate(outline, data, "x", "y", "z", zeros = FALSE, separation = 10, k = 5, crsUnit = "dd",
+ res = 50, method = "IDW", nmax = 4, idp = 1.5)
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 ... [20s] ERROR
Running 'testthat.R' [20s]
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(rLakeHabitat)
>
> test_check("rLakeHabitat")
Saving _problems/test-crossValidate-52.R
Saving _problems/test-interpBathy-51.R
Saving _problems/test-rarify-32.R
[ FAIL 3 | WARN 9 | SKIP 0 | PASS 209 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-crossValidate.R:52:3'): crossValidate output check ─────────────
Error: [rast] empty srs
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-crossValidate.R:52:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─rLakeHabitat::crossValidate(...)
5. └─rLakeHabitat::interpBathy(...)
6. └─rLakeHabitat (local) get_res(outline, res, crsUnits)
7. ├─terra::crs("EPSG:32601")
8. └─terra::crs("EPSG:32601")
9. └─terra (local) .local(x, ...)
10. ├─terra::rast(crs = x)
11. └─terra::rast(crs = x)
12. └─terra (local) .local(x = x, ...)
13. └─terra:::new_rast(...)
14. └─terra:::messages(r, "rast")
15. └─terra:::error(f, x@pntr$getError())
── Error ('test-interpBathy.R:51:3'): interpBathy output check ─────────────────
Error: [rast] empty srs
Backtrace:
▆
1. ├─testthat::expect_s4_class(...) at test-interpBathy.R:51:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─rLakeHabitat::interpBathy(...)
5. └─rLakeHabitat (local) get_res(outline, res, crsUnits)
6. ├─terra::crs("EPSG:32601")
7. └─terra::crs("EPSG:32601")
8. └─terra (local) .local(x, ...)
9. ├─terra::rast(crs = x)
10. └─terra::rast(crs = x)
11. └─terra (local) .local(x = x, ...)
12. └─terra:::new_rast(...)
13. └─terra:::messages(r, "rast")
14. └─terra:::error(f, x@pntr$getError())
── Error ('test-rarify.R:32:3'): rarify output check ───────────────────────────
Error: [rast] empty srs
Backtrace:
▆
1. ├─testthat::expect_s3_class(...) at test-rarify.R:32:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─rLakeHabitat::rarify(hull, dat, "x", "y", "z", res = 100)
5. └─rLakeHabitat (local) get_res(outline, res, crsUnits)
6. ├─terra::crs("EPSG:32601")
7. └─terra::crs("EPSG:32601")
8. └─terra (local) .local(x, ...)
9. ├─terra::rast(crs = x)
10. └─terra::rast(crs = x)
11. └─terra (local) .local(x = x, ...)
12. └─terra:::new_rast(...)
13. └─terra:::messages(r, "rast")
14. └─terra:::error(f, x@pntr$getError())
[ FAIL 3 | WARN 9 | SKIP 0 | PASS 209 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s] OK
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 2 ERRORs