- using R version 4.5.1 (2025-06-13)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-8) 14.3.0
GNU Fortran (Debian 14.3.0-8) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘forestdata/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘forestdata’ version ‘0.3.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 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 ‘forestdata’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [9s/11s] OK
- checking Rd files ... [0s/1s] 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 ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking examples ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [62s/155s] ERROR
Running ‘testthat.R’ [62s/155s]
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(forestdata)
>
> test_check("forestdata")
ℹ Downloading data...
✔ Downloaded [30.7s]
ℹ Preparing data...
✔ Prepared [171ms]
✔ Cite this dataset using <https://doi.org/10.1111/gcb.16302>
terra 1.8.70
Attaching package: 'terra'
The following objects are masked from 'package:testthat':
compare, describe
ℹ Downloading data...
✖ Download failed [4ms]
✖ `fd_forest_chorological()` failed to retrieve the data. Service might be currently unavailable
✖ `fd_forest_chorological()` failed to retrieve the data. Service might be currently unavailable
i Downloading data...
x Download failed [4ms]
x `fd_forest_chorological()` failed to retrieve the data. Service might be currently unavailable
i Downloading data...
x Download failed [5ms]
x `fd_forest_chorological()` failed to retrieve the data. Service might be currently unavailable
i Downloading data...
x Download failed [4ms]
x `fd_forest_chorological()` failed to retrieve the data. Service might be currently unavailable
i Downloading data...
x Download failed [4ms]
x `fd_forest_chorological()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [4ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [8ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [4ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [4ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [4ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [8ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [8ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [4ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [4ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
ℹ Downloading data...
✖ Download failed [8ms]
✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
i Downloading data...
v Downloaded [2.5s]
i Preparing data...
v Prepared [19ms]
v Visit <https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/mfe50.html> for more information
i Downloading data...
v Downloaded [1.7s]
i Preparing data...
v Prepared [19ms]
v Visit <https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/mfe50.html> for more information
i Downloading data...
v Downloaded [1.4s]
i Preparing data...
v Prepared [18ms]
v Visit <https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/mfe50.html> for more information
ℹ Downloading data...
✔ Downloaded [45.5s]
ℹ Preparing data...
✔ Prepared [57ms]
ℹ Downloading data...
✔ Downloaded [14ms]
ℹ Preparing data...
✔ Prepared [22ms]
ℹ Downloading data...
✔ Downloaded [25ms]
ℹ Preparing data...
✔ Prepared [22ms]
ℹ Downloading data...
✔ Downloaded [24ms]
ℹ Preparing data...
✔ Prepared [49ms]
ℹ Downloading data...
✔ Downloaded [16ms]
ℹ Preparing data...
✔ Prepared [21ms]
[ FAIL 2 | WARN 0 | SKIP 20 | PASS 32 ]
══ Skipped tests (20) ══════════════════════════════════════════════════════════
• Not a raster object, skipping test on atlas (5): 'test-eutrees4f.R:82:5',
'test-eutrees4f.R:100:5', 'test-eutrees4f.R:118:5', 'test-eutrees4f.R:138:5',
'test-eutrees4f.R:163:5'
• Not a sf object, skipping test on atlas (1): 'test-chorological-maps.R:50:5'
• On CRAN (14): 'test-GLAD.R:18:3', 'test-GLAD.R:35:3', 'test-GLAD.R:54:3',
'test-canopy-height.R:20:3', 'test-canopy-height.R:29:3',
'test-canopy-height.R:45:3', 'test-canopy-height.R:59:3',
'test-canopy-height.R:94:3', 'test-forest-country.R:36:3',
'test-land-cover.R:8:3', 'test-land-cover.R:22:3', 'test-land-cover.R:63:3',
'test-land-cover.R:84:3', 'test-land-cover.R:134:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-allometry.R:9:3'): Database is downloaded in correct format ──
class(tallo_tbl)[1] (`actual`) not equal to "tbl_df" (`expected`).
`actual`: "try-error"
`expected`: "tbl_df"
── Error ('test-allometry.R:14:3'): Data is downloaded ─────────────────────────
Error in `expect_compare(">", act, exp)`: Result of comparison must be a single logical value
Backtrace:
▆
1. └─testthat::expect_gt(nrow(tallo_tbl), 1) at test-allometry.R:14:3
2. └─testthat:::expect_compare(">", act, exp)
3. └─rlang::abort("Result of comparison must be a single logical value")
[ FAIL 2 | WARN 0 | SKIP 20 | PASS 32 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [1s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR