- using R Under development (unstable) (2023-01-24 r83673)
- using platform: x86_64-pc-linux-gnu (64-bit)
- R was compiled by
gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)
GNU Fortran (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- 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 ... [233s/250s] OK
- used C compiler: ‘gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)’
- used C++ compiler: ‘g++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)’
- checking package directory ... 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 ... [20s/24s] OK
- checking whether the package can be loaded with stated dependencies ... [20s/22s] OK
- checking whether the package can be unloaded cleanly ... [19s/23s] OK
- checking whether the namespace can be loaded with stated dependencies ... [19s/21s] OK
- checking whether the namespace can be unloaded cleanly ... [20s/22s] OK
- checking loading without being on the library search path ... [20s/22s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... NOTE
Namespace in Imports field not imported from: ‘rgdal’
All declared Imports should be used.
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [100s/110s] OK
- checking Rd files ... 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 ... [14s/15s] 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 ... [81s/94s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [175s/290s] ERROR
Running ‘testthat.R’ [175s/289s]
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 ... [10s/14s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE