* using log directory 'd:/Rcompile/CRANpkg/local/4.7/madrat.Rcheck' * using R Under development (unstable) (2026-06-06 r90114 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-06-07 05:40:26 UTC * checking for file 'madrat/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'madrat' version '3.15.6' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'madrat' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [4s] OK * checking whether the package can be unloaded cleanly ... [4s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] 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 ... [19s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [14s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [48s] ERROR Running 'testthat.R' [48s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(madrat) Loading required package: magclass Attaching package: 'magclass' The following objects are masked from 'package:base': pmax, pmin > > test_check("madrat") Saving _problems/test-toolAggregate-27.R Saving _problems/test-toolAggregate-39.R Saving _problems/test-toolAggregate-68.R Saving _problems/test-toolAggregate-74.R Saving _problems/test-toolAggregate-96.R Saving _problems/test-toolISOhistorical-8.R [ FAIL 6 | WARN 0 | SKIP 8 | PASS 649 ] ══ Skipped tests (8) ═══════════════════════════════════════════════════════════ • On CRAN (7): 'test-calcOutput.R:23:3', 'test-calcOutput.R:114:3', 'test-metadataGFZ.R:2:3', 'test-puc.R:2:3', 'test-readSource.R:58:3', 'test-readSource.R:64:3', 'test-readSource.R:73:3' • {reshape2} is not installed (1): 'test-calcOutput.R:459:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-toolAggregate.R:27:3'): Identity mapping is not changing the data ── Error in `x@.Data[i, j, k, drop = FALSE]`: incorrect number of dimensions Backtrace: ▆ 1. ├─testthat::expect_equivalent(toolAggregate(pimpf, map2), pimpf) at test-toolAggregate.R:27:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─madrat::toolAggregate(pimpf, map2) 5. └─base::apply(x, which(1:3 != dim), matrixMultiplication, rel) 6. ├─newX[, i] 7. └─newX[, i] 8. └─magclass (local) .local(x, i, j, ..., drop = drop) ── Error ('test-toolAggregate.R:39:3'): NAs and Infs in input data are treated correctly ── Error in `x@.Data[i, j, k, drop = FALSE]`: incorrect number of dimensions Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test-toolAggregate.R:39:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─madrat (local) noC(round(toolAggregate(pm2, map, partrel = TRUE))) 5. └─madrat::toolAggregate(pm2, map, partrel = TRUE) at test-toolAggregate.R:18:3 6. └─base::apply(x, which(1:3 != dim), matrixMultiplication, rel) 7. ├─newX[, i] 8. └─newX[, i] 9. └─magclass (local) .local(x, i, j, ..., drop = drop) ── Error ('test-toolAggregate.R:68:3'): NA columns in weight are summed up ───── Error in `x@.Data[i, j, k, drop = FALSE]`: incorrect number of dimensions Backtrace: ▆ 1. ├─testthat::expect_equivalent(...) at test-toolAggregate.R:68:3 2. │ └─testthat::quasi_label(enquo(expected), expected.label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─madrat (local) noC(toolAggregate(pm, map, weight = w, mixed_aggregation = TRUE)) 5. └─madrat::toolAggregate(pm, map, weight = w, mixed_aggregation = TRUE) at test-toolAggregate.R:18:3 6. └─madrat::toolAggregate(...) 7. └─base::apply(x, which(1:3 != dim), matrixMultiplication, rel) 8. ├─newX[, i] 9. └─newX[, i] 10. └─magclass (local) .local(x, i, j, ..., drop = drop) ── Error ('test-toolAggregate.R:74:3'): NA in weight leads to summation and other weight to weighting ── Error in `x@.Data[i, j, k, drop = FALSE]`: incorrect number of dimensions Backtrace: ▆ 1. ├─madrat (local) noC(toolAggregate(pm, map, weight = w, mixed_aggregation = TRUE)) at test-toolAggregate.R:74:3 2. └─madrat::toolAggregate(pm, map, weight = w, mixed_aggregation = TRUE) at test-toolAggregate.R:18:3 3. └─madrat::toolAggregate(...) 4. └─base::apply(x, which(1:3 != dim), matrixMultiplication, rel) 5. ├─newX[, i] 6. └─newX[, i] 7. └─magclass (local) .local(x, i, j, ..., drop = drop) ── Error ('test-toolAggregate.R:94:3'): partrel=TRUE works in combination with weights ── Error in `x@.Data[i, j, k, drop = FALSE]`: incorrect number of dimensions Backtrace: ▆ 1. ├─testthat::expect_equivalent(...) at test-toolAggregate.R:94:3 2. │ └─testthat::quasi_label(enquo(expected), expected.label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─madrat::toolAggregate(...) 5. └─madrat::toolAggregate(...) 6. └─base::apply(x, which(1:3 != dim), matrixMultiplication, rel) 7. ├─newX[, i] 8. └─newX[, i] 9. └─magclass (local) .local(x, i, j, ..., drop = drop) ── Error ('test-toolISOhistorical.R:8:3'): Historic data is properly translated ── Error in `x@.Data[i, j, k, drop = FALSE]`: incorrect number of dimensions Backtrace: ▆ 1. └─madrat::toolISOhistorical(a) at test-toolISOhistorical.R:8:3 2. └─madrat::toolAggregate(...) 3. └─madrat::toolAggregate(...) 4. └─base::apply(x, which(1:3 != dim), matrixMultiplication, rel) 5. ├─newX[, i] 6. └─newX[, i] 7. └─magclass (local) .local(x, i, j, ..., drop = drop) [ FAIL 6 | WARN 0 | SKIP 8 | PASS 649 ] Error: ! Test failures. Execution halted Ran 3/3 deferred expressions * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s] OK * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [18s] OK * DONE Status: 1 ERROR