Running 'testthat.R' [198s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RStoolbox) 
  > 
  > Sys.setenv("R_TESTS" = "") ## needed to pass R CMD check: https://github.com/hadley/testthat/issues/144
  > 
  > test_check("RStoolbox")
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 556 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (11)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-superClass.R:142'): terra inputs ───────────────────────────────
  Error in `superClass(rast(lsat), trainData = poly, nSamples = 50, responseCol = "class", 
      model = "pls", tuneGrid = data.frame(ncomp = 3), tuneLength = 1, 
      trainPartition = 0.7, predict = FALSE)`: img, trainData and valData (if provided) must have the same projection
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test-superClass.R:142:12
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─RStoolbox::superClass(...)
  
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 556 ]
  Error: Test failures
  Execution halted