R version 4.5.0 alpha (2025-03-23 r88038 ucrt) Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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) Loading required package: dplyr Attaching package: 'dplyr' The following object is masked from 'package:testthat': matches The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Loading required package: terra terra 1.8.29 Attaching package: 'terra' The following objects are masked from 'package:testthat': compare, describe Loading required package: gstat Loading required package: sf Linking to GEOS 3.13.1, GDAL 3.10.2, PROJ 9.5.1; sf_use_s2() is TRUE > > test_check("rLakeHabitat") [ FAIL 14 | WARN 14 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-animBathy.R:4:1'): (code run outside of `test_that()`) ───────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-animBathy.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-bathyMap.R:4:1'): (code run outside of `test_that()`) ────────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-bathyMap.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-calcHyps.R:4:1'): (code run outside of `test_that()`) ────────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-calcHyps.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-calcLittoral.R:4:1'): (code run outside of `test_that()`) ────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-calcLittoral.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-calcSDI.R:4:1'): (code run outside of `test_that()`) ─────────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-calcSDI.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-calcVolume.R:4:1'): (code run outside of `test_that()`) ──────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-calcVolume.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-contourPoints.R:5:1'): (code run outside of `test_that()`) ───── Error in `file(file, "rt")`: cannot open the connection Backtrace: ▆ 1. └─utils::read.csv("data/example_depths.csv") at test-contourPoints.R:5:1 2. └─utils::read.table(...) 3. └─base::file(file, "rt") ── Error ('test-crossValidate.R:5:1'): (code run outside of `test_that()`) ───── Error in `file(file, "rt")`: cannot open the connection Backtrace: ▆ 1. └─utils::read.csv("data/example_depths.csv") at test-crossValidate.R:5:1 2. └─utils::read.table(...) 3. └─base::file(file, "rt") ── Error ('test-estThermo.R:4:1'): (code run outside of `test_that()`) ───────── Error in `file(file, "rt")`: cannot open the connection Backtrace: ▆ 1. ├─read.csv("data/example_profile_data.csv") %>% ... at test-estThermo.R:4:1 2. ├─dplyr::mutate(., date = as.Date(date)) 3. └─utils::read.csv("data/example_profile_data.csv") 4. └─utils::read.table(...) 5. └─base::file(file, "rt") ── Error ('test-genStack.R:4:1'): (code run outside of `test_that()`) ────────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-genStack.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-interpBathy.R:5:1'): (code run outside of `test_that()`) ─────── Error in `file(file, "rt")`: cannot open the connection Backtrace: ▆ 1. └─utils::read.csv("data/example_depths.csv") at test-interpBathy.R:5:1 2. └─utils::read.table(...) 3. └─base::file(file, "rt") ── Error ('test-littoralVol.R:4:1'): (code run outside of `test_that()`) ─────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-littoralVol.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) ── Error ('test-rarify.R:5:1'): (code run outside of `test_that()`) ──────────── Error in `file(file, "rt")`: cannot open the connection Backtrace: ▆ 1. └─utils::read.csv("data/example_depths.csv") at test-rarify.R:5:1 2. └─utils::read.table(...) 3. └─base::file(file, "rt") ── Error ('test-trueSA.R:4:1'): (code run outside of `test_that()`) ──────────── Error: [rast] file does not exist: inst/extdata/example_raster.tif Backtrace: ▆ 1. ├─terra::rast("inst/extdata/example_raster.tif") at test-trueSA.R:4:1 2. └─terra::rast("inst/extdata/example_raster.tif") 3. └─terra (local) .local(x, ...) 4. └─terra:::messages(r, "rast") 5. └─terra:::error(f, x@pntr$getError()) [ FAIL 14 | WARN 14 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted