* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/antaresProcessing.Rcheck’ * using R Under development (unstable) (2025-12-20 r89211) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘antaresProcessing/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘antaresProcessing’ version ‘0.18.3’ * 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 ‘antaresProcessing’ can be installed ... 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 ... 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 whether startup messages can be suppressed ... 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 ... 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘antaresProcessing-Ex.R’ failed The error most likely occurred in: > ### Name: thermalGroupCapacities > ### Title: compute thermal capacities from study > ### Aliases: thermalGroupCapacities > > ### ** Examples > > ## No test: > library(antaresRead) > # with study test for example (study is in package antaresRead) > sourcedir <- system.file("testdata", package = "antaresRead") > > # untar study in temp dir > path_latest <- file.path(tempdir(), "latest") > untar(file.path(sourcedir, "antares-test-study.tar.gz"), exdir = path_latest) > > study_path <- file.path(path_latest, "test_case") > > # set path to your Antares simulation > opts <- setSimulationPath(study_path) > > mydata <- readAntares( areas = "all", + mcYears = "all", showProgress = FALSE) > > # long to wide format > res <- thermalGroupCapacities(opts = opts) Error in `[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, : attempt access index 9/9 in VECTOR_ELT Calls: thermalGroupCapacities ... .readClusterDesc -> get_input_cluster_properties -> [ -> [.data.table Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [19s/19s] [19s/19s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresProcessing) Loading required package: antaresRead Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare > > test_check("antaresProcessing") Importing links | | | 0% | |======= | 10% | |============== | 20% | |===================== | 30% | |============================ | 40% | |=================================== | 50% | |========================================== | 60% | |================================================= | 70% | |======================================================== | 80% | |=============================================================== | 90% | |======================================================================| 100% Saving _problems/test-addCongestionLink-8.R Saving _problems/test-addDownwardMargin-13.R Saving _problems/test-fillClusterDesc-7.R Saving _problems/test-loadFactor-12.R Saving _problems/test-modulation-8.R Saving _problems/test-surplusClusters-9.R Saving _problems/test-surplusSectors-10.R [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • empty test (2): 'test-aggregateMcYears.R:7:3', ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-addCongestionLink.R:8:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(x, , `:=`(c("congestionFrequencyDirect", "congestionFrequencyIndirect", "congestionHoursDirect", "congestionHoursIndirect"), list(round(sum((`CONG. PROB +` != 0)/.N), 2), round(sum((`CONG. PROB -` != 0)/.N), 2), sum(`CONG. PROB +` != 0), sum(`CONG. PROB -` != 0))), by = by)`: attempt access index 34/34 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addCongestionLink.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresProcessing::addCongestionLink(dt) at test-addCongestionLink.R:8:3 5. ├─...[] 6. ├─antaresRead:::`[.antaresDataTable`(...) 7. ├─base::NextMethod("[", x) 8. └─data.table:::`[.data.table`(...) ── Error ('test-addDownwardMargin.R:7:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addDownwardMargin.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-addDownwardMargin.R:7:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) 7. └─antaresRead:::.importOutputForClusters(...) 8. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 9. └─antaresRead::readClusterDesc(opts) 10. └─antaresRead:::.readClusterDesc(...) 11. └─antaresRead:::get_input_cluster_properties(...) 12. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 13. └─data.table:::`[.data.table`(...) ── Error ('test-fillClusterDesc.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-fillClusterDesc.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readClusterDesc() at test-fillClusterDesc.R:7:3 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-loadFactor.R:12:5'): loadFactor ──────────────────────────────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(loadFactor(mydata)) at test-loadFactor.R:12:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresProcessing::loadFactor(mydata) 4. └─antaresRead::readClusterDesc(opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-modulation.R:8:3'): (code run outside of `test_that()`) ──────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-modulation.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(modulation(mydata)) at test-modulation.R:8:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::modulation(mydata) 7. └─antaresRead::readClusterDesc(opts) 8. └─antaresRead:::.readClusterDesc(...) 9. └─antaresRead:::get_input_cluster_properties(...) 10. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 11. └─data.table:::`[.data.table`(...) ── Error ('test-surplusClusters.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusClusters.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-surplusClusters.R:7:3 5. └─antaresRead (local) .addOutputToRes(...) 6. ├─base::suppressWarnings(...) 7. │ └─base::withCallingHandlers(...) 8. └─plyr::llply(...) 9. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 10. └─base::lapply(pieces, .fun, ...) 11. └─antaresRead (local) FUN(X[[i]], ...) 12. └─antaresRead (local) outputFun(x, ...) 13. └─antaresRead::readClusterDesc(opts) 14. └─antaresRead:::.readClusterDesc(...) 15. └─antaresRead:::get_input_cluster_properties(...) 16. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 17. └─data.table:::`[.data.table`(...) ── Error ('test-surplusSectors.R:10:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusSectors.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(surplusSectors(mydata)) at test-surplusSectors.R:10:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::surplusSectors(mydata) 7. └─antaresProcessing::surplusClusters(x, "hourly") 8. └─antaresRead::readClusterDesc(opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 2 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/antaresProcessing.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:34.51, 75.17 + 19.23