Running ‘testthat.R’ [41s/50s]
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(dtwSat)
  Loading required package: twdtw
  Loading required package: sf
  Linking to GEOS 3.12.0, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
  Loading required package: stars
  Loading required package: abind
  Loading required package: ggplot2
  > 
  > test_check("dtwSat")
  
  Model of class 'twdtw_knn1'
  -----------------------------
  Call:
  twdtw_knn1(x = dc, y = samples, time_weight = c(steepness = 0.1, 
      midpoint = 50), cycle_length = "year", time_scale = "day", 
      formula = band ~ s(time))
  
  Formula:
  band ~ s(time)
  <environment: 0x565184cd24f0>
  
  Data:
  # A tibble: 5 × 2
    label          observations 
    <chr>          <list>       
  1 Cotton-fallow  <df [22 × 7]>
  2 Forest         <df [22 × 7]>
  3 Soybean-cotton <df [22 × 7]>
  4 Soybean-millet <df [22 × 7]>
  5 Soybean-maize  <df [22 × 7]>
  
  TWDTW Arguments:
   - time_weight: c(steepness=0.1, midpoint=50)
   - cycle_length: year
   - time_scale: day
   - origin: NULL
   - max_elapsed: Inf
   - version: f90
  prediction on array(s) `EVI,NDVI,RED,BLUE,NIR,MIR' failed; will try to split() dimension `time' over attributes
  prediction on array(s) `EVI,NDVI,RED,BLUE,NIR,MIR' failed; will try to split() dimension `time' over attributes
  
   *** caught segfault ***
  address 0x565100000017, cause 'memory not mapped'
  Fatal error: *** recursive gc invocation
  
  Fatal error: *** recursive gc invocation
Running ‘testthat.R’ [39s/46s]
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(dtwSat)
  Loading required package: twdtw
  Loading required package: sf
  Linking to GEOS 3.12.0, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
  Loading required package: stars
  Loading required package: abind
  Loading required package: ggplot2
  > 
  > test_check("dtwSat")
  
  Model of class 'twdtw_knn1'
  -----------------------------
  Call:
  twdtw_knn1(x = dc, y = samples, time_weight = c(steepness = 0.1, 
      midpoint = 50), cycle_length = "year", time_scale = "day", 
      formula = band ~ s(time))
  
  Formula:
  band ~ s(time)
  <environment: 0x5631b580b538>
  
  Data:
  # A tibble: 5 × 2
    label          observations 
    <chr>          <list>       
  1 Cotton-fallow  <df [22 × 7]>
  2 Forest         <df [22 × 7]>
  3 Soybean-cotton <df [22 × 7]>
  4 Soybean-millet <df [22 × 7]>
  5 Soybean-maize  <df [22 × 7]>
  
  TWDTW Arguments:
   - time_weight: c(steepness=0.1, midpoint=50)
   - cycle_length: year
   - time_scale: day
   - origin: NULL
   - max_elapsed: Inf
   - version: f90
  prediction on array(s) `EVI,NDVI,RED,BLUE,NIR,MIR' failed; will try to split() dimension `time' over attributes
  prediction on array(s) `EVI,NDVI,RED,BLUE,NIR,MIR' failed; will try to split() dimension `time' over attributes
  
   *** caught segfault ***
  address 0x56310000001a, cause 'memory not mapped'
  Fatal error: *** recursive gc invocation
  
  Fatal error: *** recursive gc invocation
Running ‘testthat.R’ [40s/50s]
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(dtwSat)
  Loading required package: twdtw
  Loading required package: sf
  Linking to GEOS 3.12.0, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
  Loading required package: stars
  Loading required package: abind
  Loading required package: ggplot2
  > 
  > test_check("dtwSat")
  
  Model of class 'twdtw_knn1'
  -----------------------------
  Call:
  twdtw_knn1(x = dc, y = samples, time_weight = c(steepness = 0.1, 
      midpoint = 50), cycle_length = "year", time_scale = "day", 
      formula = band ~ s(time))
  
  Formula:
  band ~ s(time)
  <environment: 0x555c1eded088>
  
  Data:
  # A tibble: 5 × 2
    label          observations 
    <chr>          <list>       
  1 Cotton-fallow  <df [22 × 7]>
  2 Forest         <df [22 × 7]>
  3 Soybean-cotton <df [22 × 7]>
  4 Soybean-millet <df [22 × 7]>
  5 Soybean-maize  <df [22 × 7]>
  
  TWDTW Arguments:
   - time_weight: c(steepness=0.1, midpoint=50)
   - cycle_length: year
   - time_scale: day
   - origin: NULL
   - max_elapsed: Inf
   - version: f90
  prediction on array(s) `EVI,NDVI,RED,BLUE,NIR,MIR' failed; will try to split() dimension `time' over attributes
  prediction on array(s) `EVI,NDVI,RED,BLUE,NIR,MIR' failed; will try to split() dimension `time' over attributes
  
   *** caught segfault ***
  address 0x180000003, cause 'memory not mapped'
  Fatal error: *** recursive gc invocation
  
  Fatal error: *** recursive gc invocation
Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-twdtw_classify.R:24:1'): (code run outside of `test_that()`) ───
  Error in `split.stars(x, c("time"))`: length(x) == 1 is not TRUE
  Backtrace:
      ▆
   1. ├─base::system.time(...) at test-twdtw_classify.R:24:0
   2. └─dtwSat::twdtw_knn1(...)
   3.   ├─base::split(x, c("time"))
   4.   └─stars:::split.stars(x, c("time"))
   5.     └─base::stopifnot(length(x) == 1)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘landuse-mapping.Rmd’ using rmarkdown

Quitting from lines 81-89 [unnamed-chunk-4] (landuse-mapping.Rmd)
Error: processing vignette 'landuse-mapping.Rmd' failed with diagnostics:
length(x) == 1 is not TRUE
--- failed re-building ‘landuse-mapping.Rmd’

SUMMARY: processing the following file failed:
  ‘landuse-mapping.Rmd’

Error: Vignette re-building failed.
Execution halted
Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-twdtw_classify.R:24:1'): (code run outside of `test_that()`) ───
  Error in `split.stars(x, c("time"))`: length(x) == 1 is not TRUE
  Backtrace:
      ▆
   1. ├─base::system.time(...) at test-twdtw_classify.R:24:0
   2. └─dtwSat::twdtw_knn1(...)
   3.   ├─base::split(x, c("time"))
   4.   └─stars:::split.stars(x, c("time"))
   5.     └─base::stopifnot(length(x) == 1)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘landuse-mapping.Rmd’ using rmarkdown

Quitting from lines 81-89 [unnamed-chunk-4] (landuse-mapping.Rmd)
Error: processing vignette 'landuse-mapping.Rmd' failed with diagnostics:
length(x) == 1 is not TRUE
--- failed re-building ‘landuse-mapping.Rmd’

SUMMARY: processing the following file failed:
  ‘landuse-mapping.Rmd’

Error: Vignette re-building failed.
Execution halted