- using R version 4.2.2 (2022-10-31)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘RStoolbox/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘RStoolbox’ version ‘0.3.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘RStoolbox’ can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [85s/100s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking examples ... [65s/89s] OK
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
topCor 4.871 0.068 5.803
getMeta 3.873 0.085 6.077
rasterCVA 3.606 0.236 5.724
stackMeta 3.631 0.002 5.010
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [143s/225s] ERROR
Running ‘testthat.R’ [143s/224s]
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")
[ FAIL 3 | WARN 0 | SKIP 11 | PASS 566 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (11)
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-multicore.R:21'): .paraRasterFun is equal to predict, calc, overlay, Both single and multicore. ──
overlay: multicore not equal to overlay(r, fun = f).
Attributes: < Component "srs": Lengths (0, 1) differ (string compare on first 0) >
── Failure ('test-multicore.R:21'): .paraRasterFun is equal to predict, calc, overlay, Both single and multicore. ──
overlay: multicore not equal to overlay(r, fun = f).
Attributes: < Component "srs": Lengths (0, 1) differ (string compare on first 0) >
── 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 3 | WARN 0 | SKIP 11 | PASS 566 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR