Last updated on 2025-12-04 07:51:53 CET.
| Package | ERROR | OK |
|---|---|---|
| multilandr | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.0.0
Check: examples
Result: 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
Flavor: r-oldrel-windows-x86_64
Version: 1.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [56s]
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
Flavor: r-oldrel-windows-x86_64
Version: 1.0.0
Check: re-building of vignette outputs
Result: 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
Flavor: r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.