- using R Under development (unstable) (2025-01-30 r87669)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘medfateland/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘medfateland’ version ‘2.5.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 ‘medfateland’ can be installed ... [127s/248s] OK
See the install log for details.
- used C++ compiler: ‘g++-14 (GCC) 14.2.0’
- checking package 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 ... [14s/23s] OK
- checking whether the package can be loaded with stated dependencies ... [14s/20s] OK
- checking whether the package can be unloaded cleanly ... [14s/19s] OK
- checking whether the namespace can be loaded with stated dependencies ... [14s/23s] OK
- checking whether the namespace can be unloaded cleanly ... [14s/25s] OK
- checking loading without being on the library search path ... [15s/48s] OK
- checking whether startup messages can be suppressed ... [14s/46s] 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 ... [95s/287s] 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 ... [15s/26s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking examples ... [30s/106s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [70s/247s] ERROR
Running ‘testthat.R’ [70s/246s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(medfateland)
Loading required package: medfate
Package 'medfate' [ver. 4.8.0]
Package 'medfateland' [ver. 2.5.1]
>
> test_check("medfateland")
✔ No wildland locations with NULL values in column 'forest'.
✔ All objects in column 'forest' have the right class.
! Wrong tree species names detected for 1 records (0.1%) in 1 wildland locations (1%).
ℹ Filtering out problematic tree/shrub records in 1 locations (1%) with missing/wrong forest data.
! Wrong tree species names detected for 1 records (0.1%) in 1 wildland locations (1%).
Package 'meteoland' [ver. 2.2.3]
! Simulation errors occurred in 2 out of 2 stands. Check error messages in 'result'
! Error in plot 1:Error in "fordyn": Could not parse date column.
! Error in plot 2:Error in "fordyn": Could not parse date column.
! Simulation errors occurred in 2 out of 2 stands. Check error messages in 'result'
! Error in plot 1:Error in "fordyn": Could not parse date column.
! Error in plot 2:Error in "fordyn": Could not parse date column.
[ FAIL 4 | WARN 2 | SKIP 0 | PASS 69 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_land.R:20:1'): (code run outside of `test_that()`) ─────────────
Error in ``/.difftime`(diff(range(ud)), mean(ud))`: second argument of / cannot be a "difftime" object
Backtrace:
▆
1. └─meteoland::create_meteo_interpolator(...) at test_land.R:20:1
2. ├─stars::st_dimensions(date = dates, station = stations)
3. └─stars:::st_dimensions.default(date = dates, station = stations)
4. ├─stars:::create_dimensions(...)
5. └─base::mapply(...)
6. └─stars (local) `<fn>`(...)
7. └─stars:::regular_intervals(values)
8. ├─base::isTRUE(as.numeric(abs(diff(range(ud))/mean(ud))) < epsilon)
9. └─base::`/.difftime`(diff(range(ud)), mean(ud))
── Error ('test_land_day.R:15:1'): (code run outside of `test_that()`) ─────────
Error in ``/.difftime`(diff(range(ud)), mean(ud))`: second argument of / cannot be a "difftime" object
Backtrace:
▆
1. └─meteoland::create_meteo_interpolator(...) at test_land_day.R:15:1
2. ├─stars::st_dimensions(date = dates, station = stations)
3. └─stars:::st_dimensions.default(date = dates, station = stations)
4. ├─stars:::create_dimensions(...)
5. └─base::mapply(...)
6. └─stars (local) `<fn>`(...)
7. └─stars:::regular_intervals(values)
8. ├─base::isTRUE(as.numeric(abs(diff(range(ud))/mean(ud))) < epsilon)
9. └─base::`/.difftime`(diff(range(ud)), mean(ud))
── Error ('test_spatial.R:30:3'): Can simulate 3 days over landscape using new meteoland interpolator ──
Error in ``/.difftime`(diff(range(ud)), mean(ud))`: second argument of / cannot be a "difftime" object
Backtrace:
▆
1. └─meteoland::create_meteo_interpolator(...) at test_spatial.R:30:3
2. ├─stars::st_dimensions(date = dates, station = stations)
3. └─stars:::st_dimensions.default(date = dates, station = stations)
4. ├─stars:::create_dimensions(...)
5. └─base::mapply(...)
6. └─stars (local) `<fn>`(...)
7. └─stars:::regular_intervals(values)
8. ├─base::isTRUE(as.numeric(abs(diff(range(ud))/mean(ud))) < epsilon)
9. └─base::`/.difftime`(diff(range(ud)), mean(ud))
── Error ('test_spatial_day.R:24:3'): Can simulate one day over landscape using new interpolator ──
Error in ``/.difftime`(diff(range(ud)), mean(ud))`: second argument of / cannot be a "difftime" object
Backtrace:
▆
1. └─meteoland::create_meteo_interpolator(...) at test_spatial_day.R:24:3
2. ├─stars::st_dimensions(date = dates, station = stations)
3. └─stars:::st_dimensions.default(date = dates, station = stations)
4. ├─stars:::create_dimensions(...)
5. └─base::mapply(...)
6. └─stars (local) `<fn>`(...)
7. └─stars:::regular_intervals(values)
8. ├─base::isTRUE(as.numeric(abs(diff(range(ud))/mean(ud))) < epsilon)
9. └─base::`/.difftime`(diff(range(ud)), mean(ud))
[ FAIL 4 | WARN 2 | SKIP 0 | PASS 69 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [10s/41s] 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: 1 ERROR