CRAN Package Check Results for Package antaresRead

Last updated on 2025-12-20 11:50:14 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.9.3 15.78 169.49 185.27 ERROR
r-devel-linux-x86_64-debian-gcc 2.9.3 9.00 114.09 123.09 ERROR
r-devel-linux-x86_64-fedora-clang 2.9.3 26.00 259.77 285.77 ERROR
r-devel-linux-x86_64-fedora-gcc 2.9.3 24.00 247.30 271.30 ERROR
r-devel-windows-x86_64 2.9.3 20.00 204.00 224.00 OK
r-patched-linux-x86_64 2.9.3 15.99 209.18 225.17 OK
r-release-linux-x86_64 2.9.3 11.98 219.19 231.17 OK
r-release-macos-arm64 2.9.3 OK
r-release-macos-x86_64 2.9.3 7.00 97.00 104.00 OK
r-release-windows-x86_64 2.9.3 19.00 192.00 211.00 OK
r-oldrel-macos-arm64 2.9.3 OK
r-oldrel-macos-x86_64 2.9.3 7.00 100.00 107.00 OK
r-oldrel-windows-x86_64 2.9.3 25.00 252.00 277.00 OK

Check Details

Version: 2.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [79s/60s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > require(testthat) Loading required package: testthat > require(antaresRead) Loading required package: antaresRead > require(plyr) Loading required package: plyr > > > #Maybe include this in some test-file.R > #is.solaris<-function(){ > # grepl('SunOS',Sys.info()['sysname']) > #} > > #if(!is.solaris()){ > > test_check("antaresRead") Saving _problems/test-RemoveInputColumn-38.R Saving _problems/test-giveSize-102.R Saving _problems/test-giveSize-106.R Saving _problems/test-giveSize-110.R Saving _problems/test-giveSize-114.R Saving _problems/test-giveSize-142.R Saving _problems/test-giveSize-167.R Saving _problems/test-giveSize-193.R Saving _problems/test-readAntares-28.R Saving _problems/test-readAntares-121.R Saving _problems/test-readAntaresClusters-10.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Importing clustersSTs | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing clustersSTs | | | 0% | |======================================================================| 100% Saving _problems/test-readAntares_STclusters-22.R Saving _problems/test-readAntares_STclusters-41.R Saving _problems/test-readAntares_STclusters-50.R Importing areas | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing binding constraints Saving _problems/test-readAntares_districts-12.R Saving _problems/test-readAntares_inputs-17.R Saving _problems/test-readAntares_mustRun-9.R Saving _problems/test-readClusterDesc-9.R Saving _problems/test-readClusterDesc-125.R Saving _problems/test-readClusterDesc-234.R Saving _problems/test-readClusterDesc-336.R Saving _problems/test-readClusterDesc-385.R Saving _problems/test-readClusterDesc-395.R Saving _problems/test-readClusterDesc-405.R Saving _problems/test-readClusterDesc-476.R Saving _problems/test-readClusterDesc-486.R Saving _problems/test-readClusterDesc-496.R Saving _problems/test-readInputClusters-11.R Saving _problems/test-readInputClusters-21.R Saving _problems/test-readInputClusters-32.R Saving _problems/test-readInputClusters-42.R Saving _problems/test-readInputClusters-48.R Saving _problems/test-readInputClusters-67.R Saving _problems/test-readInputClusters-100.R Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Saving _problems/test-removeVirtualAreas-51.R Saving _problems/test-removeVirtualAreas-103.R Saving _problems/test-removeVirtualAreas-259.R Saving _problems/test-removeVirtualAreas-360.R [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • Functions use warnings -- tests skipped for now (1): 'test-digest.R:5:1' • empty test (1): 'test-print.R:26:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RemoveInputColumn.R:38:27'): (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-RemoveInputColumn.R:5:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-RemoveInputColumn.R:38:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-RemoveInputColumn.R:38:27 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`(...) ── Failure ('test-giveSize.R:102:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:106:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:110:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1466 == -1466 ── Failure ('test-giveSize.R:114:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 3986 == -3986 ── Failure ('test-giveSize.R:142:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:167:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:193:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Error ('test-readAntares.R:28:5'): Clusters importation is ok ─────────────── 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. ├─testthat::expect_equal(nrow(clusters), 24 * 7 * nweeks * nrow(readClusterDesc())) at test-readAntares.R:28:5 2. │ └─testthat::quasi_label(enquo(expected), expected.label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::nrow(readClusterDesc()) 5. └─antaresRead::readClusterDesc() 6. └─antaresRead:::.readClusterDesc(...) 7. └─antaresRead:::get_input_cluster_properties(...) 8. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 9. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares.R:121:9'): 'select' can be used to import input columns ── 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(...) at test-readAntares.R:120:7 2. │ └─base::withCallingHandlers(...) 3. ├─base::do.call(readAntares, params) at test-readAntares.R:121:9 4. └─antaresRead (local) `<fn>`(...) 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-readAntaresClusters.R:10:5'): Clusters importation is ok ─────── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster hourly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster daily output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster weekly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster monthly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster annual output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:22:3'): ST clusters importation is OK ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:22:3 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:41:5'): ST clusters importation is OK for all time resolutions. ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:41:5 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:48:3'): ST clusters importation is KO if clusters do not belong to the study output ── 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. ├─testthat::expect_warning(...) at test-readAntares_STclusters.R:48:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readAntaresSTClusters(...) 7. └─antaresRead::readClusterSTDesc(opts = 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-readAntares_districts.R:9: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-readAntares_districts.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-readAntares_districts.R:8:1 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-readAntares_districts.R:9:3 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-readAntares_inputs.R:17:3'): Thermal availability importation is ok ── 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(...) at test-readAntares_inputs.R:17:3 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::readAntares(...) 4. └─antaresRead (local) .addOutputToRes(...) 5. ├─base::suppressWarnings(...) 6. │ └─base::withCallingHandlers(...) 7. └─plyr::llply(...) 8. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 9. └─base::lapply(pieces, .fun, ...) 10. └─antaresRead (local) FUN(X[[i]], ...) 11. └─antaresRead (local) outputFun(x, ...) 12. └─antaresRead::readClusterDesc(opts) 13. └─antaresRead:::.readClusterDesc(...) 14. └─antaresRead:::get_input_cluster_properties(...) 15. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 16. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_mustRun.R:8:1'): (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-readAntares_mustRun.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-readAntares_mustRun.R:8:1 5. └─antaresRead:::.importOutputForClusters(...) 6. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 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-readClusterDesc.R:9:3'): test read cluster ───────────────────── 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. └─antaresRead::readClusterDesc() at test-readClusterDesc.R:9:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:125:3'): test read cluster renewables ──────── 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. └─antaresRead::readClusterResDesc() at test-readClusterDesc.R:125:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:234:3'): test read cluster st-storage v860 ─── 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. └─antaresRead::readClusterSTDesc() at test-readClusterDesc.R:234:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:335:3'): test when study has no cluster (empty) ── 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. ├─testthat::expect_equal(readClusterDesc(), data.table::data.table()) at test-readClusterDesc.R:335:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─antaresRead::readClusterDesc() 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-readClusterDesc.R:385:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:385:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:395:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:395:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:405:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:405:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:476:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:476:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:486:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:486:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:496:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:496:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:10:5'): Thermal availabilities importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:19:7'): Thermal modulation importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:19:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:30:5'): Thermal data importation works ───── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:30:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Failure ('test-readInputClusters.R:40:5'): Wrong area ─────────────────────── `readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial")` threw an error with unexpected message. Expected match: "areas are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:40:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial") 7. └─antaresRead::readClusterDesc(opts = 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`(...) ── Failure ('test-readInputClusters.R:46:5'): Wrong cluster ──────────────────── `readInputThermal(areas = "all", clusters = "BAD_CLUSTER")` threw an error with unexpected message. Expected match: "clusters are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:46:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "all", clusters = "BAD_CLUSTER") 7. └─antaresRead::readClusterDesc(opts = 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-readInputClusters.R:67:3'): test reading TS RES ──────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:67:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:100:3'): test reading TS RES ─────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:100:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:49:5'): RemoveVirtualAreas removes production areas ── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:49:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:101:5'): reassignCosts works correctly ──── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:101:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:259:7'): bug #119, removeVirtualAreas correct district data ── Error in ``[.data.table`(dataCorrected$areas, area %in% newAreas, `:=`(c(varSumCal), sum(get(i))), by = c("timeId"))`: attempt access index 48/48 in VECTOR_ELT Backtrace: ▆ 1. ├─...[] at test-removeVirtualAreas.R:259:7 2. ├─antaresRead:::`[.antaresDataTable`(...) at test-removeVirtualAreas.R:259:7 3. ├─base::NextMethod("[", x) 4. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:353:7'): List for storageFlexibility ────── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─antaresRead::removeVirtualAreas(...) at test-removeVirtualAreas.R:353:7 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 2.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [51s/61s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > require(testthat) Loading required package: testthat > require(antaresRead) Loading required package: antaresRead > require(plyr) Loading required package: plyr > > > #Maybe include this in some test-file.R > #is.solaris<-function(){ > # grepl('SunOS',Sys.info()['sysname']) > #} > > #if(!is.solaris()){ > > test_check("antaresRead") Saving _problems/test-RemoveInputColumn-38.R Saving _problems/test-giveSize-102.R Saving _problems/test-giveSize-106.R Saving _problems/test-giveSize-110.R Saving _problems/test-giveSize-114.R Saving _problems/test-giveSize-142.R Saving _problems/test-giveSize-167.R Saving _problems/test-giveSize-193.R Saving _problems/test-readAntares-28.R Saving _problems/test-readAntares-121.R Saving _problems/test-readAntaresClusters-10.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Importing clustersSTs | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing clustersSTs | | | 0% | |======================================================================| 100% Saving _problems/test-readAntares_STclusters-22.R Saving _problems/test-readAntares_STclusters-41.R Saving _problems/test-readAntares_STclusters-50.R Importing areas | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing binding constraints Saving _problems/test-readAntares_districts-12.R Saving _problems/test-readAntares_inputs-17.R Saving _problems/test-readAntares_mustRun-9.R Saving _problems/test-readClusterDesc-9.R Saving _problems/test-readClusterDesc-125.R Saving _problems/test-readClusterDesc-234.R Saving _problems/test-readClusterDesc-336.R Saving _problems/test-readClusterDesc-385.R Saving _problems/test-readClusterDesc-395.R Saving _problems/test-readClusterDesc-405.R Saving _problems/test-readClusterDesc-476.R Saving _problems/test-readClusterDesc-486.R Saving _problems/test-readClusterDesc-496.R Saving _problems/test-readInputClusters-11.R Saving _problems/test-readInputClusters-21.R Saving _problems/test-readInputClusters-32.R Saving _problems/test-readInputClusters-42.R Saving _problems/test-readInputClusters-48.R Saving _problems/test-readInputClusters-67.R Saving _problems/test-readInputClusters-100.R Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Saving _problems/test-removeVirtualAreas-51.R Saving _problems/test-removeVirtualAreas-103.R Saving _problems/test-removeVirtualAreas-259.R Saving _problems/test-removeVirtualAreas-360.R [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • Functions use warnings -- tests skipped for now (1): 'test-digest.R:5:1' • empty test (1): 'test-print.R:26:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RemoveInputColumn.R:38:27'): (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-RemoveInputColumn.R:5:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-RemoveInputColumn.R:38:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-RemoveInputColumn.R:38:27 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`(...) ── Failure ('test-giveSize.R:102:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:106:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:110:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1466 == -1466 ── Failure ('test-giveSize.R:114:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 3986 == -3986 ── Failure ('test-giveSize.R:142:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:167:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:193:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Error ('test-readAntares.R:28:5'): Clusters importation is ok ─────────────── 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. ├─testthat::expect_equal(nrow(clusters), 24 * 7 * nweeks * nrow(readClusterDesc())) at test-readAntares.R:28:5 2. │ └─testthat::quasi_label(enquo(expected), expected.label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::nrow(readClusterDesc()) 5. └─antaresRead::readClusterDesc() 6. └─antaresRead:::.readClusterDesc(...) 7. └─antaresRead:::get_input_cluster_properties(...) 8. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 9. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares.R:121:9'): 'select' can be used to import input columns ── 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(...) at test-readAntares.R:120:7 2. │ └─base::withCallingHandlers(...) 3. ├─base::do.call(readAntares, params) at test-readAntares.R:121:9 4. └─antaresRead (local) `<fn>`(...) 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-readAntaresClusters.R:10:5'): Clusters importation is ok ─────── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster hourly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster daily output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster weekly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster monthly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster annual output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:22:3'): ST clusters importation is OK ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:22:3 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:41:5'): ST clusters importation is OK for all time resolutions. ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:41:5 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:48:3'): ST clusters importation is KO if clusters do not belong to the study output ── 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. ├─testthat::expect_warning(...) at test-readAntares_STclusters.R:48:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readAntaresSTClusters(...) 7. └─antaresRead::readClusterSTDesc(opts = 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-readAntares_districts.R:9: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-readAntares_districts.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-readAntares_districts.R:8:1 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-readAntares_districts.R:9:3 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-readAntares_inputs.R:17:3'): Thermal availability importation is ok ── 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(...) at test-readAntares_inputs.R:17:3 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::readAntares(...) 4. └─antaresRead (local) .addOutputToRes(...) 5. ├─base::suppressWarnings(...) 6. │ └─base::withCallingHandlers(...) 7. └─plyr::llply(...) 8. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 9. └─base::lapply(pieces, .fun, ...) 10. └─antaresRead (local) FUN(X[[i]], ...) 11. └─antaresRead (local) outputFun(x, ...) 12. └─antaresRead::readClusterDesc(opts) 13. └─antaresRead:::.readClusterDesc(...) 14. └─antaresRead:::get_input_cluster_properties(...) 15. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 16. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_mustRun.R:8:1'): (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-readAntares_mustRun.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-readAntares_mustRun.R:8:1 5. └─antaresRead:::.importOutputForClusters(...) 6. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 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-readClusterDesc.R:9:3'): test read cluster ───────────────────── 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. └─antaresRead::readClusterDesc() at test-readClusterDesc.R:9:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:125:3'): test read cluster renewables ──────── 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. └─antaresRead::readClusterResDesc() at test-readClusterDesc.R:125:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:234:3'): test read cluster st-storage v860 ─── 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. └─antaresRead::readClusterSTDesc() at test-readClusterDesc.R:234:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:335:3'): test when study has no cluster (empty) ── 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. ├─testthat::expect_equal(readClusterDesc(), data.table::data.table()) at test-readClusterDesc.R:335:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─antaresRead::readClusterDesc() 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-readClusterDesc.R:385:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:385:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:395:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:395:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:405:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:405:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:476:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:476:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:486:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:486:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:496:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:496:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:10:5'): Thermal availabilities importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:19:7'): Thermal modulation importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:19:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:30:5'): Thermal data importation works ───── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:30:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Failure ('test-readInputClusters.R:40:5'): Wrong area ─────────────────────── `readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial")` threw an error with unexpected message. Expected match: "areas are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:40:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial") 7. └─antaresRead::readClusterDesc(opts = 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`(...) ── Failure ('test-readInputClusters.R:46:5'): Wrong cluster ──────────────────── `readInputThermal(areas = "all", clusters = "BAD_CLUSTER")` threw an error with unexpected message. Expected match: "clusters are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:46:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "all", clusters = "BAD_CLUSTER") 7. └─antaresRead::readClusterDesc(opts = 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-readInputClusters.R:67:3'): test reading TS RES ──────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:67:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:100:3'): test reading TS RES ─────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:100:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:49:5'): RemoveVirtualAreas removes production areas ── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:49:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:101:5'): reassignCosts works correctly ──── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:101:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:259:7'): bug #119, removeVirtualAreas correct district data ── Error in ``[.data.table`(dataCorrected$areas, area %in% newAreas, `:=`(c(varSumCal), sum(get(i))), by = c("timeId"))`: attempt access index 48/48 in VECTOR_ELT Backtrace: ▆ 1. ├─...[] at test-removeVirtualAreas.R:259:7 2. ├─antaresRead:::`[.antaresDataTable`(...) at test-removeVirtualAreas.R:259:7 3. ├─base::NextMethod("[", x) 4. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:353:7'): List for storageFlexibility ────── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─antaresRead::removeVirtualAreas(...) at test-removeVirtualAreas.R:353:7 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [114s/101s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > require(testthat) Loading required package: testthat > require(antaresRead) Loading required package: antaresRead > require(plyr) Loading required package: plyr > > > #Maybe include this in some test-file.R > #is.solaris<-function(){ > # grepl('SunOS',Sys.info()['sysname']) > #} > > #if(!is.solaris()){ > > test_check("antaresRead") Saving _problems/test-RemoveInputColumn-38.R Saving _problems/test-giveSize-102.R Saving _problems/test-giveSize-106.R Saving _problems/test-giveSize-110.R Saving _problems/test-giveSize-114.R Saving _problems/test-giveSize-142.R Saving _problems/test-giveSize-167.R Saving _problems/test-giveSize-193.R Saving _problems/test-readAntares-28.R Saving _problems/test-readAntares-121.R Saving _problems/test-readAntaresClusters-10.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Importing clustersSTs | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing clustersSTs | | | 0% | |======================================================================| 100% Saving _problems/test-readAntares_STclusters-22.R Saving _problems/test-readAntares_STclusters-41.R Saving _problems/test-readAntares_STclusters-50.R Importing areas | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing binding constraints Saving _problems/test-readAntares_districts-12.R Saving _problems/test-readAntares_inputs-17.R Saving _problems/test-readAntares_mustRun-9.R Saving _problems/test-readClusterDesc-9.R Saving _problems/test-readClusterDesc-125.R Saving _problems/test-readClusterDesc-234.R Saving _problems/test-readClusterDesc-336.R Saving _problems/test-readClusterDesc-385.R Saving _problems/test-readClusterDesc-395.R Saving _problems/test-readClusterDesc-405.R Saving _problems/test-readClusterDesc-476.R Saving _problems/test-readClusterDesc-486.R Saving _problems/test-readClusterDesc-496.R Saving _problems/test-readInputClusters-11.R Saving _problems/test-readInputClusters-21.R Saving _problems/test-readInputClusters-32.R Saving _problems/test-readInputClusters-42.R Saving _problems/test-readInputClusters-48.R Saving _problems/test-readInputClusters-67.R Saving _problems/test-readInputClusters-100.R Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Saving _problems/test-removeVirtualAreas-51.R Saving _problems/test-removeVirtualAreas-103.R Saving _problems/test-removeVirtualAreas-259.R Saving _problems/test-removeVirtualAreas-360.R [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • Functions use warnings -- tests skipped for now (1): 'test-digest.R:5:1' • empty test (1): 'test-print.R:26:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RemoveInputColumn.R:38:27'): (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-RemoveInputColumn.R:5:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-RemoveInputColumn.R:38:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-RemoveInputColumn.R:38:27 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`(...) ── Failure ('test-giveSize.R:102:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:106:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:110:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1466 == -1466 ── Failure ('test-giveSize.R:114:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 3986 == -3986 ── Failure ('test-giveSize.R:142:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:167:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:193:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Error ('test-readAntares.R:28:5'): Clusters importation is ok ─────────────── 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. ├─testthat::expect_equal(nrow(clusters), 24 * 7 * nweeks * nrow(readClusterDesc())) at test-readAntares.R:28:5 2. │ └─testthat::quasi_label(enquo(expected), expected.label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::nrow(readClusterDesc()) 5. └─antaresRead::readClusterDesc() 6. └─antaresRead:::.readClusterDesc(...) 7. └─antaresRead:::get_input_cluster_properties(...) 8. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 9. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares.R:121:9'): 'select' can be used to import input columns ── 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(...) at test-readAntares.R:120:7 2. │ └─base::withCallingHandlers(...) 3. ├─base::do.call(readAntares, params) at test-readAntares.R:121:9 4. └─antaresRead (local) `<fn>`(...) 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-readAntaresClusters.R:10:5'): Clusters importation is ok ─────── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster hourly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster daily output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster weekly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster monthly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster annual output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:22:3'): ST clusters importation is OK ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:22:3 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:41:5'): ST clusters importation is OK for all time resolutions. ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:41:5 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:48:3'): ST clusters importation is KO if clusters do not belong to the study output ── 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. ├─testthat::expect_warning(...) at test-readAntares_STclusters.R:48:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readAntaresSTClusters(...) 7. └─antaresRead::readClusterSTDesc(opts = 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-readAntares_districts.R:9: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-readAntares_districts.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-readAntares_districts.R:8:1 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-readAntares_districts.R:9:3 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-readAntares_inputs.R:17:3'): Thermal availability importation is ok ── 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(...) at test-readAntares_inputs.R:17:3 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::readAntares(...) 4. └─antaresRead (local) .addOutputToRes(...) 5. ├─base::suppressWarnings(...) 6. │ └─base::withCallingHandlers(...) 7. └─plyr::llply(...) 8. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 9. └─base::lapply(pieces, .fun, ...) 10. └─antaresRead (local) FUN(X[[i]], ...) 11. └─antaresRead (local) outputFun(x, ...) 12. └─antaresRead::readClusterDesc(opts) 13. └─antaresRead:::.readClusterDesc(...) 14. └─antaresRead:::get_input_cluster_properties(...) 15. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 16. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_mustRun.R:8:1'): (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-readAntares_mustRun.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-readAntares_mustRun.R:8:1 5. └─antaresRead:::.importOutputForClusters(...) 6. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 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-readClusterDesc.R:9:3'): test read cluster ───────────────────── 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. └─antaresRead::readClusterDesc() at test-readClusterDesc.R:9:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:125:3'): test read cluster renewables ──────── 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. └─antaresRead::readClusterResDesc() at test-readClusterDesc.R:125:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:234:3'): test read cluster st-storage v860 ─── 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. └─antaresRead::readClusterSTDesc() at test-readClusterDesc.R:234:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:335:3'): test when study has no cluster (empty) ── 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. ├─testthat::expect_equal(readClusterDesc(), data.table::data.table()) at test-readClusterDesc.R:335:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─antaresRead::readClusterDesc() 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-readClusterDesc.R:385:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:385:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:395:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:395:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:405:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:405:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:476:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:476:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:486:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:486:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:496:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:496:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:10:5'): Thermal availabilities importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:19:7'): Thermal modulation importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:19:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:30:5'): Thermal data importation works ───── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:30:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Failure ('test-readInputClusters.R:40:5'): Wrong area ─────────────────────── `readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial")` threw an error with unexpected message. Expected match: "areas are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:40:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial") 7. └─antaresRead::readClusterDesc(opts = 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`(...) ── Failure ('test-readInputClusters.R:46:5'): Wrong cluster ──────────────────── `readInputThermal(areas = "all", clusters = "BAD_CLUSTER")` threw an error with unexpected message. Expected match: "clusters are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:46:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "all", clusters = "BAD_CLUSTER") 7. └─antaresRead::readClusterDesc(opts = 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-readInputClusters.R:67:3'): test reading TS RES ──────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:67:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:100:3'): test reading TS RES ─────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:100:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:49:5'): RemoveVirtualAreas removes production areas ── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:49:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:101:5'): reassignCosts works correctly ──── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:101:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:259:7'): bug #119, removeVirtualAreas correct district data ── Error in ``[.data.table`(dataCorrected$areas, area %in% newAreas, `:=`(c(varSumCal), sum(get(i))), by = c("timeId"))`: attempt access index 48/48 in VECTOR_ELT Backtrace: ▆ 1. ├─...[] at test-removeVirtualAreas.R:259:7 2. ├─antaresRead:::`[.antaresDataTable`(...) at test-removeVirtualAreas.R:259:7 3. ├─base::NextMethod("[", x) 4. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:353:7'): List for storageFlexibility ────── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─antaresRead::removeVirtualAreas(...) at test-removeVirtualAreas.R:353:7 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [100s/125s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > require(testthat) Loading required package: testthat > require(antaresRead) Loading required package: antaresRead > require(plyr) Loading required package: plyr > > > #Maybe include this in some test-file.R > #is.solaris<-function(){ > # grepl('SunOS',Sys.info()['sysname']) > #} > > #if(!is.solaris()){ > > test_check("antaresRead") Saving _problems/test-RemoveInputColumn-38.R Saving _problems/test-giveSize-102.R Saving _problems/test-giveSize-106.R Saving _problems/test-giveSize-110.R Saving _problems/test-giveSize-114.R Saving _problems/test-giveSize-142.R Saving _problems/test-giveSize-167.R Saving _problems/test-giveSize-193.R Saving _problems/test-readAntares-28.R Saving _problems/test-readAntares-121.R Saving _problems/test-readAntaresClusters-10.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Saving _problems/test-readAntaresClusters-27.R Importing clustersSTs | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing clustersSTs | | | 0% | |======================================================================| 100% Saving _problems/test-readAntares_STclusters-22.R Saving _problems/test-readAntares_STclusters-41.R Saving _problems/test-readAntares_STclusters-50.R Importing areas | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing binding constraints Saving _problems/test-readAntares_districts-12.R Saving _problems/test-readAntares_inputs-17.R Saving _problems/test-readAntares_mustRun-9.R Saving _problems/test-readClusterDesc-9.R Saving _problems/test-readClusterDesc-125.R Saving _problems/test-readClusterDesc-234.R Saving _problems/test-readClusterDesc-336.R Saving _problems/test-readClusterDesc-385.R Saving _problems/test-readClusterDesc-395.R Saving _problems/test-readClusterDesc-405.R Saving _problems/test-readClusterDesc-476.R Saving _problems/test-readClusterDesc-486.R Saving _problems/test-readClusterDesc-496.R Saving _problems/test-readInputClusters-11.R Saving _problems/test-readInputClusters-21.R Saving _problems/test-readInputClusters-32.R Saving _problems/test-readInputClusters-42.R Saving _problems/test-readInputClusters-48.R Saving _problems/test-readInputClusters-67.R Saving _problems/test-readInputClusters-100.R Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Saving _problems/test-removeVirtualAreas-51.R Saving _problems/test-removeVirtualAreas-103.R Saving _problems/test-removeVirtualAreas-259.R Saving _problems/test-removeVirtualAreas-360.R [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • Functions use warnings -- tests skipped for now (1): 'test-digest.R:5:1' • empty test (1): 'test-print.R:26:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RemoveInputColumn.R:38:27'): (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-RemoveInputColumn.R:5:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-RemoveInputColumn.R:38:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-RemoveInputColumn.R:38:27 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`(...) ── Failure ('test-giveSize.R:102:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:106:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:110:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1466 == -1466 ── Failure ('test-giveSize.R:114:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 3986 == -3986 ── Failure ('test-giveSize.R:142:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1008 == -1008 ── Failure ('test-giveSize.R:167:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Failure ('test-giveSize.R:193:3'): Check the size of the object to get ────── Expected `size` to equal `expected_size`. Differences: 1/1 mismatches [1] 0 - 1512 == -1512 ── Error ('test-readAntares.R:28:5'): Clusters importation is ok ─────────────── 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. ├─testthat::expect_equal(nrow(clusters), 24 * 7 * nweeks * nrow(readClusterDesc())) at test-readAntares.R:28:5 2. │ └─testthat::quasi_label(enquo(expected), expected.label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::nrow(readClusterDesc()) 5. └─antaresRead::readClusterDesc() 6. └─antaresRead:::.readClusterDesc(...) 7. └─antaresRead:::get_input_cluster_properties(...) 8. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 9. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares.R:121:9'): 'select' can be used to import input columns ── 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(...) at test-readAntares.R:120:7 2. │ └─base::withCallingHandlers(...) 3. ├─base::do.call(readAntares, params) at test-readAntares.R:121:9 4. └─antaresRead (local) `<fn>`(...) 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-readAntaresClusters.R:10:5'): Clusters importation is ok ─────── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster hourly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster daily output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster weekly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster monthly output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntaresClusters.R:27:7'): one can import cluster annual output ── 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. └─antaresRead::readAntaresClusters(...) at test-readAntaresClusters.R:27:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:22:3'): ST clusters importation is OK ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:22:3 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:41:5'): ST clusters importation is OK for all time resolutions. ── 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. └─antaresRead::readAntaresSTClusters(...) at test-readAntares_STclusters.R:41:5 2. └─antaresRead::readClusterSTDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_STclusters.R:48:3'): ST clusters importation is KO if clusters do not belong to the study output ── 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. ├─testthat::expect_warning(...) at test-readAntares_STclusters.R:48:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readAntaresSTClusters(...) 7. └─antaresRead::readClusterSTDesc(opts = 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-readAntares_districts.R:9: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-readAntares_districts.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-readAntares_districts.R:8:1 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) at test-readAntares_districts.R:9:3 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-readAntares_inputs.R:17:3'): Thermal availability importation is ok ── 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(...) at test-readAntares_inputs.R:17:3 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::readAntares(...) 4. └─antaresRead (local) .addOutputToRes(...) 5. ├─base::suppressWarnings(...) 6. │ └─base::withCallingHandlers(...) 7. └─plyr::llply(...) 8. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 9. └─base::lapply(pieces, .fun, ...) 10. └─antaresRead (local) FUN(X[[i]], ...) 11. └─antaresRead (local) outputFun(x, ...) 12. └─antaresRead::readClusterDesc(opts) 13. └─antaresRead:::.readClusterDesc(...) 14. └─antaresRead:::get_input_cluster_properties(...) 15. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 16. └─data.table:::`[.data.table`(...) ── Error ('test-readAntares_mustRun.R:8:1'): (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-readAntares_mustRun.R:4:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresRead (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-readAntares_mustRun.R:8:1 5. └─antaresRead:::.importOutputForClusters(...) 6. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 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-readClusterDesc.R:9:3'): test read cluster ───────────────────── 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. └─antaresRead::readClusterDesc() at test-readClusterDesc.R:9:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:125:3'): test read cluster renewables ──────── 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. └─antaresRead::readClusterResDesc() at test-readClusterDesc.R:125:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:234:3'): test read cluster st-storage v860 ─── 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. └─antaresRead::readClusterSTDesc() at test-readClusterDesc.R:234:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:335:3'): test when study has no cluster (empty) ── 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. ├─testthat::expect_equal(readClusterDesc(), data.table::data.table()) at test-readClusterDesc.R:335:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─antaresRead::readClusterDesc() 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-readClusterDesc.R:385:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:385:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:395:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:395:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:405:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:405:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:476:3'): Operating format (default) ────────── 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. └─antaresRead::readClusterSTDesc(opts = opts) at test-readClusterDesc.R:476:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:486:3'): Antares format ────────────────────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:486:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readClusterDesc.R:496:3'): Test properties read from .ini ────── 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. └─antaresRead::readClusterSTDesc(dot_format = FALSE, opts = opts) at test-readClusterDesc.R:496:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:10:5'): Thermal availabilities importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:10:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:19:7'): Thermal modulation importation works ── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:19:7 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:30:5'): Thermal data importation works ───── 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. └─antaresRead::readInputThermal(...) at test-readInputClusters.R:30:5 2. └─antaresRead::readClusterDesc(opts = opts) 3. └─antaresRead:::.readClusterDesc(...) 4. └─antaresRead:::get_input_cluster_properties(...) 5. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 6. └─data.table:::`[.data.table`(...) ── Failure ('test-readInputClusters.R:40:5'): Wrong area ─────────────────────── `readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial")` threw an error with unexpected message. Expected match: "areas are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:40:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "BAD_AREA", clusters = "peak_must_run_partial") 7. └─antaresRead::readClusterDesc(opts = 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`(...) ── Failure ('test-readInputClusters.R:46:5'): Wrong cluster ──────────────────── `readInputThermal(areas = "all", clusters = "BAD_CLUSTER")` threw an error with unexpected message. Expected match: "clusters are not available" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-readInputClusters.R:46:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─antaresRead::readInputThermal(areas = "all", clusters = "BAD_CLUSTER") 7. └─antaresRead::readClusterDesc(opts = 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-readInputClusters.R:67:3'): test reading TS RES ──────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:67:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-readInputClusters.R:100:3'): test reading TS RES ─────────────── 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. └─antaresRead::readClusterResDesc() at test-readInputClusters.R:100:3 2. └─antaresRead:::.readClusterDesc(...) 3. └─antaresRead:::get_input_cluster_properties(...) 4. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:49:5'): RemoveVirtualAreas removes production areas ── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:49:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:101:5'): reassignCosts works correctly ──── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-removeVirtualAreas.R:101:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresRead::removeVirtualAreas(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:259:7'): bug #119, removeVirtualAreas correct district data ── Error in ``[.data.table`(dataCorrected$areas, area %in% newAreas, `:=`(c(varSumCal), sum(get(i))), by = c("timeId"))`: attempt access index 48/48 in VECTOR_ELT Backtrace: ▆ 1. ├─...[] at test-removeVirtualAreas.R:259:7 2. ├─antaresRead:::`[.antaresDataTable`(...) at test-removeVirtualAreas.R:259:7 3. ├─base::NextMethod("[", x) 4. └─data.table:::`[.data.table`(...) ── Error ('test-removeVirtualAreas.R:353:7'): List for storageFlexibility ────── Error in ``[.data.table`(costs, , `:=`(c("totalFlow", "N"), list(sum(abs(flow)), .N)), by = byarea)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─antaresRead::removeVirtualAreas(...) at test-removeVirtualAreas.R:353:7 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 43 | WARN 14 | SKIP 2 | PASS 938 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

mirror server hosted at Truenetwork, Russian Federation.