Running ‘testthat.R’ [67s/174s]
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(ebvcube)
  > 
  > test_check("ebvcube")
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 194 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plots.R:4:3'): test ebv_trend mean ─────────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_trend(file, "metric_1/ebv_cube", 1, "mean", verbose = FALSE) at test-plots.R:4:3
   2. │ ├─base::replace(data.all, data.all == fillvalue, c(NA))
   3. │ │ └─methods (local) `[<-`(`*tmp*`, list, value = `<lgl>`)
   4. │ ├─data.all == fillvalue
   5. │ └─data.all == fillvalue
   6. │   └─base::stop(...)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-plots.R:27:3'): test ebv_trend min ─────────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_trend(file, "metric_1/ebv_cube", 1, "min", verbose = FALSE) at test-plots.R:27:3
   2. │ ├─base::replace(data.all, data.all == fillvalue, c(NA))
   3. │ │ └─methods (local) `[<-`(`*tmp*`, list, value = `<lgl>`)
   4. │ ├─data.all == fillvalue
   5. │ └─data.all == fillvalue
   6. │   └─base::stop(...)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-plots.R:37:3'): test ebv_trend max ─────────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_trend(...) at test-plots.R:37:3
   2. │ ├─base::replace(data.all, data.all == fillvalue, c(NA))
   3. │ │ └─methods (local) `[<-`(`*tmp*`, list, value = `<lgl>`)
   4. │ ├─data.all == fillvalue
   5. │ └─data.all == fillvalue
   6. │   └─base::stop(...)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-plots.R:47:3'): test ebv_trend boxplot ─────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_trend(...) at test-plots.R:47:3
   2. │ ├─base::replace(data.all, data.all == fillvalue, c(NA))
   3. │ │ └─methods (local) `[<-`(`*tmp*`, list, value = `<lgl>`)
   4. │ ├─data.all == fillvalue
   5. │ └─data.all == fillvalue
   6. │   └─base::stop(...)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-plots.R:57:3'): test ebv_trend metric ──────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_trend(...) at test-plots.R:57:3
   2. │ ├─base::replace(data.all, data.all == fillvalue, c(NA))
   3. │ │ └─methods (local) `[<-`(`*tmp*`, list, value = `<lgl>`)
   4. │ ├─data.all == fillvalue
   5. │ └─data.all == fillvalue
   6. │   └─base::stop(...)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-plots.R:69:3'): test ebv_map 1 ─────────────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_map(...) at test-plots.R:69:3
   2. │ ├─methods (local) `[<-`(`*tmp*`, data.all == nodata, value = `<lgl>`)
   3. │ ├─data.all == nodata
   4. │ └─data.all == nodata
   5. │   └─base::stop(...)
   6. └─base::.handleSimpleError(...)
   7.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-plots.R:82:3'): test ebv_map: col_rev ──────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_map(...) at test-plots.R:82:3
   2. │ ├─methods (local) `[<-`(`*tmp*`, data.all == nodata, value = `<lgl>`)
   3. │ ├─data.all == nodata
   4. │ └─data.all == nodata
   5. │   └─base::stop(...)
   6. └─base::.handleSimpleError(...)
   7.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-plots.R:97:3'): test ebv_map: no countries, one class only ─────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_map(...) at test-plots.R:97:3
   2. │ ├─methods (local) `[<-`(`*tmp*`, data.all == nodata, value = `<lgl>`)
   3. │ ├─data.all == nodata
   4. │ └─data.all == nodata
   5. │   └─base::stop(...)
   6. └─base::.handleSimpleError(...)
   7.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-write.R:35:3'): test ebv_write and ebv_read DelayedMatrix Array ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'i' in selecting a method for function '[<-': '==' between a DelayedArray object and an array is not supported yet
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_read(...) at test-write.R:35:3
   2. │ ├─base::replace(h5array, h5array == fillvalue, c(NA))
   3. │ │ └─methods (local) `[<-`(`*tmp*`, list, value = `<lgl>`)
   4. │ ├─h5array == fillvalue
   5. │ └─h5array == fillvalue
   6. │   └─base::stop(...)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 194 ]
  Error: Test failures
  Execution halted