- 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 'multilandr/DESCRIPTION' ... OK
- this is package 'multilandr' version '1.0.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 'multilandr' 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 ... [8s] OK
- checking whether the package can be loaded with stated dependencies ... [9s] OK
- checking whether the package can be unloaded cleanly ... [8s] OK
- checking whether the namespace can be loaded with stated dependencies ... [8s] OK
- checking whether the namespace can be unloaded cleanly ... [9s] OK
- checking loading without being on the library search path ... [8s] 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 ... [30s] 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 contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [8s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [32s] ERROR
Running examples in 'multilandr-Ex.R' failed
The error most likely occurred in:
> ### Name: mland
> ### Title: Generates object of class 'MultiLand'
> ### Aliases: mland
>
> ### ** Examples
>
> # Loads main raster with land covers
> elchaco <- terra::rast(system.file("extdata", "elchaco.tif", package = "multilandr"))
>
> # Main raster should have discrete values (e.g. land covers). This can be
> # checked with the function check_raster():
>
> check_raster(elchaco)
layer crs units class n_classes OK
1 1 projected m integer 6 ✔
>
> # Loads extra raster with NDVI values
> elchaco_ndvi <- terra::rast(system.file("extdata", "elchaco_ndvi.tif", package = "multilandr"))
>
> # Classes names
> cl_names <- c(1, "Forest",
+ 2, "Grassland",
+ 3, "Crops",
+ 4, "Pastures",
+ 5, "Water",
+ 6, "Urban")
>
> # Loads points
> elchaco_sites <- terra::vect(system.file("extdata", "elchaco_sites.gpkg", package = "multilandr"))
>
> # Creates 'MultiLand' object by loading main raster, an extra raster and points.
> ernesdesign <- mland(points_layer = elchaco_sites,
+ rast_layer = elchaco,
+ radii = seq(1000, 5000, 1000),
+ class_names = list(cl_names),
+ site_ref = "name",
+ ext_rast_layer = elchaco_ndvi,
+ rast_names = c("landcover", "NDVI"),
+ segs = 20)
Loading layers
Error: - rasters CRS must be equal to points layer CRS.
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [58s] ERROR
Running 'testthat.R' [57s]
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/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(multilandr)
>
> test_check("multilandr")
Saving _problems/test-mland-13.R
- condition 1: raster layers included in the filtering process: 1
140 points were retained out of 607 initial points (23.06%).
- condition 1: raster layers included in the filtering process: 1
- condition 2: raster layers included in the filtering process: 1
67 points were retained out of 607 initial points (11.04%).
[ FAIL 1 | WARN 5 | SKIP 0 | PASS 13 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-mland.R:7:5'): loads MultiLand successfully ────────────────────
Error: - rasters CRS must be equal to points layer CRS.
Backtrace:
▆
1. ├─testthat::expect_s4_class(...) at test-mland.R:4:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─multilandr::mland(...) at test-mland.R:7:5
5. └─base::tryCatch(...)
6. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
7. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
8. └─value[[3L]](cond)
[ FAIL 1 | WARN 5 | SKIP 0 | PASS 13 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [10s] ERROR
Error(s) in re-building vignettes:
--- re-building 'Introduction.Rmd' using rmarkdown
File ./man/figures/plot_peje.png not found in resource path
Error: processing vignette 'Introduction.Rmd' failed with diagnostics:
pandoc document conversion failed with error 99
--- failed re-building 'Introduction.Rmd'
SUMMARY: processing the following file failed:
'Introduction.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [6s] OK
- DONE
Status: 3 ERRORs