- 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 'fireexposuR/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'fireexposuR' version '1.2.0'
- 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 'fireexposuR' 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [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 ... [5s] 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 ... [14s] ERROR
Running examples in 'fireexposuR-Ex.R' failed
The error most likely occurred in:
> ### Name: fire_exp_dir
> ### Title: Conduct a directional exposure assessment
> ### Aliases: fire_exp_dir
>
> ### ** Examples
>
> # read example hazard data
> hazard_file_path <- "extdata/hazard.tif"
> hazard <- terra::rast(system.file(hazard_file_path, package = "fireexposuR"))
>
> # generate an example point
> point_wkt <- "POINT (345000 5876000)"
> point <- terra::vect(point_wkt, crs = hazard)
>
> # compute exposure metric
> exposure <- fire_exp(hazard)
>
> # assess directional exposure
> fire_exp_dir(exposure, point)
Warning: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1)
Error: [project] output crs is not valid
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [31s] ERROR
Running 'testthat.R' [31s]
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(fireexposuR)
>
> test_check("fireexposuR")
Saving _problems/test-fire_exp_dir-10.R
Saving _problems/test-fire_exp_dir-27.R
Saving _problems/test-fire_exp_dir-35.R
Saving _problems/test-fire_exp_dir-36.R
Saving _problems/test-fire_exp_dir-37.R
Saving _problems/test-fire_exp_dir-38.R
Saving _problems/test-fire_exp_dir-39.R
Saving _problems/test-fire_exp_dir-40.R
Saving _problems/test-fire_exp_dir-41.R
Saving _problems/test-fire_exp_dir-42.R
Saving _problems/test-fire_exp_dir_map-6.R
Saving _problems/test-fire_exp_dir_map-25.R
Saving _problems/test-fire_exp_dir_map-35.R
Saving _problems/test-fire_exp_dir_multi-13.R
Saving _problems/test-fire_exp_dir_multi_plot-9.R
Saving _problems/test-fire_exp_dir_multi_plot-16.R
Saving _problems/test-fire_exp_dir_plot-6.R
Saving _problems/test-fire_exp_dir_plot-22.R
Saving _problems/test-fire_exp_dir_plot-31.R
Saving _problems/test-fire_exp_extract-15.R
Saving _problems/test-fire_exp_extract-23.R
Saving _problems/test-fire_exp_extract-24.R
Saving _problems/test-fire_exp_extract_map-5.R
Saving _problems/test-fire_exp_extract_map-32.R
Saving _problems/test-fire_exp_extract_map-40.R
Saving _problems/test-fire_exp_extract_summary-5.R
Saving _problems/test-fire_exp_extract_summary-31.R
Saving _problems/test-fire_exp_extract_summary-39.R
Saving _problems/test-fire_exp_extract_vis-5.R
Saving _problems/test-fire_exp_extract_vis-25.R
Saving _problems/test-fire_exp_extract_vis-35.R
Saving _problems/test-fire_exp_map-21.R
Saving _problems/test-fire_exp_map-37.R
Saving _problems/test-fire_exp_map-43.R
Saving _problems/test-fire_exp_map-45.R
Saving _problems/test-fire_exp_map_class-31.R
Saving _problems/test-fire_exp_map_class-37.R
Saving _problems/test-fire_exp_map_class-38.R
Saving _problems/test-fire_exp_map_cont-38.R
[ FAIL 39 | WARN 98 | SKIP 0 | PASS 73 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-fire_exp_dir.R:9:3'): fire_exp_dir() input checks and function messages work ──
Error in `fire_exp_dir(exp, pts)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. ├─testthat::expect_message(fire_exp_dir(exp, pts), "Value object provided has more than one feature") at test-fire_exp_dir.R:9:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─fireexposuR::fire_exp_dir(exp, pts)
8. └─base::stopifnot(...)
── Error ('test-fire_exp_dir.R:27:3'): fire_exp_dir() returns object with correct class ──
Error in `fire_exp_dir(exp, pt)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. ├─testthat::expect_s4_class(fire_exp_dir(exp, pt), "SpatVector") at test-fire_exp_dir.R:27:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─fireexposuR::fire_exp_dir(exp, pt)
5. └─base::stopifnot(...)
── Failure ('test-fire_exp_dir.R:35:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, pt)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Failure ('test-fire_exp_dir.R:36:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, v)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Failure ('test-fire_exp_dir.R:37:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, pt, table = TRUE)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Failure ('test-fire_exp_dir.R:38:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, v, table = TRUE)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Failure ('test-fire_exp_dir.R:39:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, v, t_lengths = c(2000, 2000, 2000))` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Failure ('test-fire_exp_dir.R:40:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, v, interval = 5)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Failure ('test-fire_exp_dir.R:41:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, pt, thresh_exp = 0.5)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Failure ('test-fire_exp_dir.R:42:3'): fire_exp_dir() runs when input conditions are met ──
Expected `fire_exp_dir(exp, pt, thresh_viable = 0.5)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `value` must have the same CRS
── Error ('test-fire_exp_dir_map.R:6:3'): fire_exp_dir_map() input checks work ──
Error in `fire_exp_dir(exp, pt)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir(exp, pt) at test-fire_exp_dir_map.R:6:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_dir_map.R:25:3'): fire_exp_dir_map() returns objects with correct class ──
Error in `fire_exp_dir(exp, pt)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir(exp, pt) at test-fire_exp_dir_map.R:25:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_dir_map.R:35:3'): fire_exp_dir_map() runs when input conditions are met ──
Error in `fire_exp_dir(exp, pt)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir(exp, pt) at test-fire_exp_dir_map.R:35:3
2. └─base::stopifnot(...)
── Failure ('test-fire_exp_dir_multi.R:13:3'): fire_exp_dir_multi() runs when input conditions are met ──
Expected `fire_exp_dir_multi(exp, pts, interval = 10)` not to throw any errors.
Actually got a <simpleError> with message:
`values` and `exposure` must have the same crs
── Error ('test-fire_exp_dir_multi_plot.R:9:3'): fire_exp_dir_multi_plot() returns object with correct class ──
Error in `fire_exp_dir_multi(exp, pts)`: `values` and `exposure` must have the same crs
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir_multi(exp, pts) at test-fire_exp_dir_multi_plot.R:9:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_dir_multi_plot.R:16:3'): fire_exp_dir_multi_plot() runs when input conditions are met ──
Error in `fire_exp_dir_multi(exp, pts)`: `values` and `exposure` must have the same crs
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir_multi(exp, pts) at test-fire_exp_dir_multi_plot.R:16:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_dir_plot.R:6:3'): fire_exp_dir_plot() input checks work ──
Error in `fire_exp_dir(exp, pt)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir(exp, pt) at test-fire_exp_dir_plot.R:6:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_dir_plot.R:22:3'): fire_exp_dir_plot() returns objects with correct class ──
Error in `fire_exp_dir(exp, pt)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir(exp, pt) at test-fire_exp_dir_plot.R:22:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_dir_plot.R:31:3'): fire_exp_dir_plot() runs when input conditions are met ──
Error in `fire_exp_dir(exp, pt)`: `exposure` and `value` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir(exp, pt) at test-fire_exp_dir_plot.R:31:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract.R:15:3'): fire_exp_extract() returns objects with correct class ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. ├─testthat::expect_s4_class(fire_exp_extract(exp, pts), "SpatVector") at test-fire_exp_extract.R:15:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─fireexposuR::fire_exp_extract(exp, pts)
5. └─base::stopifnot(...)
── Failure ('test-fire_exp_extract.R:23:3'): fire_exp_extract() runs when input conditions are met ──
Expected `fire_exp_extract(exp, pols)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `values` must have the same CRS
── Failure ('test-fire_exp_extract.R:24:3'): fire_exp_extract() runs when input conditions are met ──
Expected `fire_exp_extract(exp, pts)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `values` must have the same CRS
── Error ('test-fire_exp_extract_map.R:5:3'): fire_exp_extract_map() input checks work ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_map.R:5:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_map.R:32:3'): fire_exp_extract_map() returns objects with correct class ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_map.R:32:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_map.R:40:3'): fire_exp_extract_map() runs when input conditions are met ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_map.R:40:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_summary.R:5:3'): fire_exp_extract_summary() input checks work ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_summary.R:5:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_summary.R:31:3'): fire_exp_extract_summary() returns objects with correct class ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_summary.R:31:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_summary.R:39:3'): fire_exp_extract_summary() runs when input conditions are met ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_summary.R:39:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_vis.R:5:3'): fire_exp_extract_vis() input checks work ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_vis.R:5:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_vis.R:25:3'): fire_exp_extract_vis() returns objects with correct class ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_vis.R:25:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_extract_vis.R:35:3'): fire_exp_extract_vis() runs when input conditions are met ──
Error in `fire_exp_extract(exp, pts)`: `exposure` and `values` must have the same CRS
Backtrace:
▆
1. └─fireexposuR::fire_exp_extract(exp, pts) at test-fire_exp_extract_vis.R:35:3
2. └─base::stopifnot(...)
── Error ('test-fire_exp_map.R:20:3'): fire_exp_map() input checks and function messages work ──
Error in `fire_exp_map(exp, v, classify = "blah")`: `exposure` and `aoi` must have same CRS
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-fire_exp_map.R:20:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─fireexposuR::fire_exp_map(exp, v, classify = "blah")
8. └─base::stopifnot(...)
── Error ('test-fire_exp_map.R:37:3'): fire_exp_map() returns object with correct class ──
Error in `fire_exp_map(exp, aoi = v)`: `exposure` and `aoi` must have same CRS
Backtrace:
▆
1. ├─testthat::expect_s3_class(...) at test-fire_exp_map.R:37:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::suppressMessages(fire_exp_map(exp, aoi = v))
5. │ └─base::withCallingHandlers(...)
6. └─fireexposuR::fire_exp_map(exp, aoi = v)
7. └─base::stopifnot(...)
── Failure ('test-fire_exp_map.R:43:3'): fire_exp_map() runs when input conditions are met ──
Expected `suppressMessages(fire_exp_map(exp, v, "landscape"))` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `aoi` must have same CRS
── Failure ('test-fire_exp_map.R:44:3'): fire_exp_map() runs when input conditions are met ──
Expected `fire_exp_map(...)` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `aoi` must have same CRS
── Error ('test-fire_exp_map_class.R:31:3'): fire_exp_map_class() returns object with correct class ──
Error in `fire_exp_map_class(exp, aoi = v)`: `exposure` and `aoi` must have same CRS
Backtrace:
▆
1. ├─testthat::expect_s3_class(...) at test-fire_exp_map_class.R:31:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::suppressWarnings(fire_exp_map_class(exp, aoi = v))
5. │ └─base::withCallingHandlers(...)
6. └─fireexposuR::fire_exp_map_class(exp, aoi = v)
7. └─base::stopifnot(...)
── Failure ('test-fire_exp_map_class.R:37:3'): fire_exp_map_class() runs when input conditions are met ──
Expected `suppressWarnings(fire_exp_map_class(exp, v, "lan"))` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `aoi` must have same CRS
── Failure ('test-fire_exp_map_class.R:38:3'): fire_exp_map_class() runs when input conditions are met ──
Expected `fire_exp_map_class(exp, v, "cus", class_breaks = c(0.2, 1))` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `aoi` must have same CRS
── Failure ('test-fire_exp_map_cont.R:38:3'): fire_exp_map_cont() runs when input conditions are met ──
Expected `suppressMessages(fire_exp_map_cont(exp, v))` not to throw any errors.
Actually got a <simpleError> with message:
`exposure` and `aoi` must have same CRS
[ FAIL 39 | WARN 98 | SKIP 0 | PASS 73 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [28s] ERROR
Error(s) in re-building vignettes:
--- re-building 'fireexposuR.Rmd' using rmarkdown
Quitting from fireexposuR.Rmd:178-189 [example2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `fire_exp_dir()`:
! `exposure` and `value` must have the same CRS
---
Backtrace:
▆
1. └─fireexposuR::fire_exp_dir(exposure, aoi)
2. └─base::stopifnot(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'fireexposuR.Rmd' failed with diagnostics:
`exposure` and `value` must have the same CRS
--- failed re-building 'fireexposuR.Rmd'
--- re-building 'prep-input-data.Rmd' using rmarkdown
--- finished re-building 'prep-input-data.Rmd'
--- re-building 'prometheus.Rmd' using rmarkdown
--- finished re-building 'prometheus.Rmd'
--- re-building 'resources.Rmd' using rmarkdown
--- finished re-building 'resources.Rmd'
SUMMARY: processing the following file failed:
'fireexposuR.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [4s] OK
- DONE
Status: 3 ERRORs