Last updated on 2024-12-27 03:49:38 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.6.4 | 64.73 | 79.37 | 144.10 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.6.4 | 44.04 | 69.25 | 113.29 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.6.4 | 315.54 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.6.4 | 315.09 | OK | |||
r-devel-windows-x86_64 | 0.6.4 | 69.00 | 148.00 | 217.00 | OK | |
r-patched-linux-x86_64 | 0.6.4 | 63.08 | 98.16 | 161.24 | OK | |
r-release-linux-x86_64 | 0.6.4 | 65.74 | 97.41 | 163.15 | OK | |
r-release-macos-arm64 | 0.6.4 | 74.00 | NOTE | |||
r-release-macos-x86_64 | 0.6.4 | 103.00 | NOTE | |||
r-release-windows-x86_64 | 0.6.4 | 69.00 | 140.00 | 209.00 | OK | |
r-oldrel-macos-arm64 | 0.6.4 | 70.00 | NOTE | |||
r-oldrel-macos-x86_64 | 0.6.4 | 134.00 | NOTE | |||
r-oldrel-windows-x86_64 | 0.6.4 | 82.00 | 169.00 | 251.00 | OK |
Version: 0.6.4
Check: examples
Result: ERROR
Running examples in ‘motif-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: lsp_add_terra
> ### Title: Creates or adds a terra object
> ### Aliases: lsp_add_terra
>
> ### ** Examples
>
> library(stars)
Loading required package: abind
Loading required package: sf
Linking to GEOS 3.13.0, GDAL 3.9.3, PROJ 9.5.1; sf_use_s2() is TRUE
> library(terra)
Error in library(terra) : there is no package called ‘terra’
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.6.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [20s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(stars)
Loading required package: abind
Loading required package: sf
Linking to GEOS 3.13.0, GDAL 3.9.3, PROJ 9.5.1; sf_use_s2() is TRUE
> library(sf)
> library(motif)
>
> # prepare regular stars ---------------------------------------------------
> # landcover = read_stars(system.file("raster/landcover2015.tif", package = "motif"), proxy = FALSE)
> # landform = read_stars(system.file("raster/landform.tif", package = "motif"), proxy = FALSE)
> # landcoverold = read_stars(system.file("raster/landcover2001.tif", package = "motif"), proxy = FALSE)
>
> # prepare stars proxy -----------------------------------------------------
> # landform_p = read_stars(system.file("raster/landform.tif", package = "motif"), proxy = TRUE)
> # landcover_p = read_stars(system.file("raster/landcover2015.tif", package = "motif"), proxy = TRUE)
> # landcoverold_p = read_stars(system.file("raster/landcover2001.tif", package = "motif"), proxy = TRUE)
>
> # prep test extent --------------------------------------------------------
> # t_ext = st_bbox(c(xmin = -400000, xmax = -200000,
> # ymin = -600000, ymax = -400000),
> # crs = st_crs(landcover))
>
> # prepare regular stars ---------------------------------------------------
> # landcover = landcover[t_ext]
> # landform = landform[t_ext]
> # landcoverold = landcoverold[t_ext]
> landcover = read_stars(system.file("raster/landcover2015s.tif", package = "motif"), proxy = FALSE)
> landform = read_stars(system.file("raster/landforms.tif", package = "motif"), proxy = FALSE)
> landcoverold = read_stars(system.file("raster/landcover2001s.tif", package = "motif"), proxy = FALSE)
>
> # prepare stars proxy -----------------------------------------------------
> # landform_p = st_crop(landform_p, t_ext)
> # landcover_p = st_crop(landcover_p, t_ext)
> # landcoverold_p = st_crop(landcoverold_p, t_ext)
> landcover_p = read_stars(system.file("raster/landcover2015s.tif", package = "motif"), proxy = TRUE)
> landform_p = read_stars(system.file("raster/landforms.tif", package = "motif"), proxy = TRUE)
> landcoverold_p = read_stars(system.file("raster/landcover2001s.tif", package = "motif"), proxy = TRUE)
>
> # prepare poly ------------------------------------------------------------
> # ecoregions = read_sf(system.file("vector/ecoregions.gpkg", package = "motif"))
> # # st_crs(ecoregions) = st_crs(landform_p)
> # ecoregions = st_transform(ecoregions, st_crs(landform_p))
> # ecoregions = st_crop(ecoregions, t_ext)
> # ecoregions = st_cast(ecoregions, "MULTIPOLYGON")
> ecoregions = read_sf(system.file("vector/ecoregionss.gpkg", package = "motif"))
> ecoregions = st_transform(ecoregions, st_crs(landform))
>
> # prepare cont data -------------------------------------------------------
> set.seed(222)
> random_ndvi = landcover
> random_ndvi$ndvi = sample(x = 1:10, size = length(random_ndvi[[1]]), replace = TRUE)
> random_ndvi$landcover2015.tif = NULL
>
> # prepare sample landscapes -----------------------------------------------
> ext = st_bbox(c(xmin = -249797.344531127, xmax = -211162.693944285,
+ ymin = -597280.143035389, ymax = -558645.492448547),
+ crs = st_crs(landcover))
>
> landcover_ext = landcover[ext]
> landform_ext = landform[ext]
> random_ndvi_ext = random_ndvi[ext]
>
> # prepare my fun ----------------------------------------------------------
> my_fun = function(x) sum(!is.na(c(x[[1]])))
>
> test_check("motif")
[ FAIL 1 | WARN 5 | SKIP 0 | PASS 69 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-window_shift.R:15:1'): (code run outside of `test_that()`) ─────
Error in `lsp_add_terra(landform_cove)`: package terra required, please install it first
Backtrace:
▆
1. └─motif::lsp_add_terra(landform_cove) at test-window_shift.R:15:1
[ FAIL 1 | WARN 5 | SKIP 0 | PASS 69 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.6.4
Check: installed package size
Result: NOTE
installed size is 6.2Mb
sub-directories of 1Mb or more:
libs 3.0Mb
raster 2.2Mb
Flavors: r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64