CRAN Package Check Results for Maintainer ‘Tatiana Vargas <tatiana.vargas at rte-france.com>’

Last updated on 2025-12-22 05:51:53 CET.

Package ERROR OK
antaresEditObject 4 9
antaresProcessing 4 9
antaresRead 4 9
antaresViz 4 9
leaflet.minicharts 13
spMaps 13

Package antaresEditObject

Current CRAN status: ERROR: 4, OK: 9

Version: 0.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [130s/128s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > # CRAN limite CPU usage > data.table::setDTthreads(2) > > library(testthat) > library(antaresEditObject) Loading required package: antaresRead > > test_check("antaresEditObject") Saving _problems/test-RES-78.R Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-ST-43.R Saving _problems/test-createArea-119.R Saving _problems/test-createArea-192.R Saving _problems/test-createArea-229.R Saving _problems/test-createArea-354.R Saving _problems/test-createArea-553.R Study successfully deleted Study successfully deletedSaving _problems/test-createBindingConstraint-193.R Saving _problems/test-createBindingConstraint-234.R Saving _problems/test-createBindingConstraint-262.R Saving _problems/test-createBindingConstraint-287.R Saving _problems/test-createBindingConstraint-327.R New/existing group : 'default' will be created/updated with dimension : [10] New/existing group : 'new_group' will be created/updated with dimension : [3] New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-createBindingConstraint-709.R Saving _problems/test-createBindingConstraint-745.R Saving _problems/test-createBindingConstraint-797.R Saving _problems/test-createBindingConstraint-814.R Saving _problems/test-createBindingConstraint-863.R Study successfully deletedSaving _problems/test-createBindingConstraint-1054.R Saving _problems/test-createBindingConstraint-1092.R Saving _problems/test-createBindingConstraint-1122.R Saving _problems/test-createCluster-18.R Saving _problems/test-createCluster-52.R Saving _problems/test-createCluster-61.R Saving _problems/test-createCluster-68.R Saving _problems/test-createCluster-143.R Study successfully deletedSaving _problems/test-createCluster-209.R Saving _problems/test-createCluster-248.R Study successfully deleted Study successfully deletedTime difference of 0.475678 secs Saving _problems/test-createClusterBulk-116.R Time difference of 1.338213 secs Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-editBindingConstraint-45.R New/existing group : 'default' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-180.R New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-359.R Study successfully deletedSaving _problems/test-editCluster-14.R Saving _problems/test-editCluster-95.R Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-removeBindingConstraint-68.R Saving _problems/test-removeBindingConstraint-122.R Saving _problems/test-removeBindingConstraint-167.R Saving _problems/test-removeBindingConstraint-207.R Study successfully deletedSaving _problems/test-scenarioBuilder-11.R Study successfully deleted Study successfully deletedImporting mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the hourly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/common/capacity/maxpower_zone51.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% [ FAIL 38 | WARN 128 | SKIP 4 | PASS 644 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • Deprecated (1): 'test-compute_timeStamp_from_hourly.R:3:1' • Function requires study that spans on 2 years (TODO) (1): 'test-computeTimeStepFromHourly.R:3:1' • On CRAN (1): 'test-createArea.R:25:5' • empty test (1): 'test-createClusterBulk.R:152:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RES.R:78:3'): removeClusterRES(): check if the expected files are deleted ── 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(opts = simOptions()) at test-RES.R:78: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-ST.R:43:3'): removeClusterST(): check if the expected files are deleted ── 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 = simOptions()) at test-ST.R:43: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-createArea.R:119:5'): Remove an area ─────────────────────────── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:119:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:192:5'): create area / st-storage in 8.6.0 / Remove an area in 8.6.0 ── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:192:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:229:3'): removeArea() in 8.2.0 : check that properties.ini are all there ── 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. └─antaresEditObject::removeArea(name = area, opts = opts) at test-createArea.R:229:3 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:349:5'): removeArea(): check that area is removed if it is not referenced in a binding constraint and not removed if the area is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createArea.R:349:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:553:5'): New HYDRO default parameter / Remove area / check hydro params ── 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. └─antaresEditObject::removeArea(name = area_test) at test-createArea.R:553:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:186:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:186: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:231:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:231: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:259:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid link" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:259: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:282:5'): Create a new binding constraint with cluster coefficients (not with %) ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:282:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:327:5'): createBindingConstraintBulk v710 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:327:5 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:703:3'): bc with multi weight + offset properties ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:703:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:745:3'): createBindingConstraintBulk v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:745:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:794:3'): test bad dimension object with existing object in study v8.7 ── `createBindingConstraintBulk(list(bad_object))` threw an error with unexpected message. Expected match: "Problem dimension with group" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:794: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. └─antaresEditObject::createBindingConstraintBulk(list(bad_object)) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:814:3'): test NULL VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(list(BC_NULL_VALUES)) at test-createBindingConstraint.R:814:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:863:3'): test mixed VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(BC_MIX_VALUES) at test-createBindingConstraint.R:863:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1045:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1045: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:1089:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a link coefficient but you have no link in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1089: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1119:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1119: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:18:5'): Create a new 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. ├─testthat::expect_true(...) at test-createCluster.R:18:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area, "mycluster", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:52:5'): Create a cluster with default properties ── 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_true(...) at test-createCluster.R:52:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:61:5'): Remove a 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. ├─testthat::expect_false(...) at test-createCluster.R:61:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:68:5'): Remove all clusters ──────────────────── 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-createCluster.R:68:5 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-createCluster.R:143:5'): Create cluster with pollutants params (new feature v8.6) / Create cluster with parameter pollutant ── 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-createCluster.R:143:5 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-createCluster.R:203:5'): removeCluster() : cluster is not removed if it is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createCluster.R:203:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:248:3'): removeCluster(): check if the expected files are deleted ── 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(opts = simOptions()) at test-createCluster.R:248: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-createClusterBulk.R:116:3'): Create cluster bulk v8, time performance ── 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-createClusterBulk.R:116: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`(...) ── Failure ('test-editBindingConstraint.R:33:3'): editBindingConstraint v710 ─── `editBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-editBindingConstraint.R:33: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. └─antaresEditObject::editBindingConstraint(...) 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-editBindingConstraint.R:173:3'): editBindingConstraint with 'default' group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:173:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editBindingConstraint.R:351:3'): editBindingConstraint with existing group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:351:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editCluster.R:14:5'): Edit nominal capacity ──────────────────── 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-editCluster.R:14:5 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-editCluster.R:95:3'): Edit cluster with pollutants params (new feature v8.6) ── 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(opts = opts_test) at test-editCluster.R:95: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-removeBindingConstraint.R:61:3'): removeBindingConstraint v8.7.0 by name ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:61:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:115:3'): removeBindingConstraint v8.7.0 by names ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:115:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:160:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:160:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:200:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:200:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-scenarioBuilder.R:11: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-scenarioBuilder.R:7:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresEditObject (local) FUN(X[[i]], ...) 4. └─antaresEditObject::readScenarioBuilder(...) at test-scenarioBuilder.R:11:3 5. └─base::lapply(...) 6. └─antaresEditObject (local) FUN(X[[i]], ...) 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`(...) [ FAIL 38 | WARN 128 | SKIP 4 | PASS 644 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.9.3
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘Antares_new_features_v860.Rmd’ using rmarkdown Quitting from Antares_new_features_v860.Rmd:92-95 [read st-storage param] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterSTDesc() 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: processing vignette 'Antares_new_features_v860.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘Antares_new_features_v860.Rmd’ --- re-building ‘Antares_new_features_v920.Rmd’ using rmarkdown Quitting from Antares_new_features_v920.Rmd:73-91 [st-storage/group] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterSTDesc() 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: processing vignette 'Antares_new_features_v920.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘Antares_new_features_v920.Rmd’ --- re-building ‘Antares_new_features_v930.Rmd’ using rmarkdown Quitting from Antares_new_features_v930.Rmd:83-103 [creation/properties] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterSTDesc() 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: processing vignette 'Antares_new_features_v930.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘Antares_new_features_v930.Rmd’ --- re-building ‘antaresEditObject.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘antaresEditObject.Rmd’ --- re-building ‘api-variant-management.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘api-variant-management.Rmd’ --- re-building ‘renewables-energy-sources.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘renewables-energy-sources.Rmd’ --- re-building ‘scenario-builder.Rmd’ using rmarkdown Quitting from scenario-builder.Rmd:27-57 [unnamed-chunk-2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterDesc() 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: processing vignette 'scenario-builder.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘scenario-builder.Rmd’ SUMMARY: processing the following files failed: ‘Antares_new_features_v860.Rmd’ ‘Antares_new_features_v920.Rmd’ ‘Antares_new_features_v930.Rmd’ ‘scenario-builder.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [93s/110s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > # CRAN limite CPU usage > data.table::setDTthreads(2) > > library(testthat) > library(antaresEditObject) Loading required package: antaresRead > > test_check("antaresEditObject") Saving _problems/test-RES-78.R Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-ST-43.R Saving _problems/test-createArea-119.R Saving _problems/test-createArea-192.R Saving _problems/test-createArea-229.R Saving _problems/test-createArea-354.R Saving _problems/test-createArea-553.R Study successfully deleted Study successfully deletedSaving _problems/test-createBindingConstraint-193.R Saving _problems/test-createBindingConstraint-234.R Saving _problems/test-createBindingConstraint-262.R Saving _problems/test-createBindingConstraint-287.R Saving _problems/test-createBindingConstraint-327.R New/existing group : 'default' will be created/updated with dimension : [10] New/existing group : 'new_group' will be created/updated with dimension : [3] New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-createBindingConstraint-709.R Saving _problems/test-createBindingConstraint-745.R Saving _problems/test-createBindingConstraint-797.R Saving _problems/test-createBindingConstraint-814.R Saving _problems/test-createBindingConstraint-863.R Study successfully deletedSaving _problems/test-createBindingConstraint-1054.R Saving _problems/test-createBindingConstraint-1092.R Saving _problems/test-createBindingConstraint-1122.R Saving _problems/test-createCluster-18.R Saving _problems/test-createCluster-52.R Saving _problems/test-createCluster-61.R Saving _problems/test-createCluster-68.R Saving _problems/test-createCluster-143.R Study successfully deletedSaving _problems/test-createCluster-209.R Saving _problems/test-createCluster-248.R Study successfully deleted Study successfully deletedTime difference of 0.2720244 secs Saving _problems/test-createClusterBulk-116.R Time difference of 0.6622503 secs Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-editBindingConstraint-45.R New/existing group : 'default' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-180.R New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-359.R Study successfully deletedSaving _problems/test-editCluster-14.R Saving _problems/test-editCluster-95.R Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-removeBindingConstraint-68.R Saving _problems/test-removeBindingConstraint-122.R Saving _problems/test-removeBindingConstraint-167.R Saving _problems/test-removeBindingConstraint-207.R Study successfully deletedSaving _problems/test-scenarioBuilder-11.R Study successfully deleted Study successfully deletedImporting mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the hourly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/common/capacity/maxpower_zone51.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% [ FAIL 38 | WARN 127 | SKIP 4 | PASS 644 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • Deprecated (1): 'test-compute_timeStamp_from_hourly.R:3:1' • Function requires study that spans on 2 years (TODO) (1): 'test-computeTimeStepFromHourly.R:3:1' • On CRAN (1): 'test-createArea.R:25:5' • empty test (1): 'test-createClusterBulk.R:152:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RES.R:78:3'): removeClusterRES(): check if the expected files are deleted ── 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(opts = simOptions()) at test-RES.R:78: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-ST.R:43:3'): removeClusterST(): check if the expected files are deleted ── 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 = simOptions()) at test-ST.R:43: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-createArea.R:119:5'): Remove an area ─────────────────────────── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:119:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:192:5'): create area / st-storage in 8.6.0 / Remove an area in 8.6.0 ── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:192:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:229:3'): removeArea() in 8.2.0 : check that properties.ini are all there ── 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. └─antaresEditObject::removeArea(name = area, opts = opts) at test-createArea.R:229:3 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:349:5'): removeArea(): check that area is removed if it is not referenced in a binding constraint and not removed if the area is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createArea.R:349:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:553:5'): New HYDRO default parameter / Remove area / check hydro params ── 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. └─antaresEditObject::removeArea(name = area_test) at test-createArea.R:553:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:186:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:186: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:231:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:231: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:259:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid link" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:259: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:282:5'): Create a new binding constraint with cluster coefficients (not with %) ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:282:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:327:5'): createBindingConstraintBulk v710 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:327:5 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:703:3'): bc with multi weight + offset properties ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:703:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:745:3'): createBindingConstraintBulk v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:745:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:794:3'): test bad dimension object with existing object in study v8.7 ── `createBindingConstraintBulk(list(bad_object))` threw an error with unexpected message. Expected match: "Problem dimension with group" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:794: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. └─antaresEditObject::createBindingConstraintBulk(list(bad_object)) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:814:3'): test NULL VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(list(BC_NULL_VALUES)) at test-createBindingConstraint.R:814:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:863:3'): test mixed VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(BC_MIX_VALUES) at test-createBindingConstraint.R:863:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1045:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1045: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:1089:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a link coefficient but you have no link in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1089: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1119:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1119: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:18:5'): Create a new 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. ├─testthat::expect_true(...) at test-createCluster.R:18:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area, "mycluster", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:52:5'): Create a cluster with default properties ── 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_true(...) at test-createCluster.R:52:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:61:5'): Remove a 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. ├─testthat::expect_false(...) at test-createCluster.R:61:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:68:5'): Remove all clusters ──────────────────── 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-createCluster.R:68:5 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-createCluster.R:143:5'): Create cluster with pollutants params (new feature v8.6) / Create cluster with parameter pollutant ── 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-createCluster.R:143:5 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-createCluster.R:203:5'): removeCluster() : cluster is not removed if it is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createCluster.R:203:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:248:3'): removeCluster(): check if the expected files are deleted ── 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(opts = simOptions()) at test-createCluster.R:248: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-createClusterBulk.R:116:3'): Create cluster bulk v8, time performance ── 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-createClusterBulk.R:116: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`(...) ── Failure ('test-editBindingConstraint.R:33:3'): editBindingConstraint v710 ─── `editBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-editBindingConstraint.R:33: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. └─antaresEditObject::editBindingConstraint(...) 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-editBindingConstraint.R:173:3'): editBindingConstraint with 'default' group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:173:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editBindingConstraint.R:351:3'): editBindingConstraint with existing group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:351:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editCluster.R:14:5'): Edit nominal capacity ──────────────────── 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-editCluster.R:14:5 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-editCluster.R:95:3'): Edit cluster with pollutants params (new feature v8.6) ── 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(opts = opts_test) at test-editCluster.R:95: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-removeBindingConstraint.R:61:3'): removeBindingConstraint v8.7.0 by name ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:61:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:115:3'): removeBindingConstraint v8.7.0 by names ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:115:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:160:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:160:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:200:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:200:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-scenarioBuilder.R:11: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-scenarioBuilder.R:7:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresEditObject (local) FUN(X[[i]], ...) 4. └─antaresEditObject::readScenarioBuilder(...) at test-scenarioBuilder.R:11:3 5. └─base::lapply(...) 6. └─antaresEditObject (local) FUN(X[[i]], ...) 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`(...) [ FAIL 38 | WARN 127 | SKIP 4 | PASS 644 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [191s/161s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > # CRAN limite CPU usage > data.table::setDTthreads(2) > > library(testthat) > library(antaresEditObject) Loading required package: antaresRead > > test_check("antaresEditObject") Saving _problems/test-RES-78.R Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-ST-43.R Saving _problems/test-createArea-119.R Saving _problems/test-createArea-192.R Saving _problems/test-createArea-229.R Saving _problems/test-createArea-354.R Saving _problems/test-createArea-553.R Study successfully deleted Study successfully deletedSaving _problems/test-createBindingConstraint-193.R Saving _problems/test-createBindingConstraint-234.R Saving _problems/test-createBindingConstraint-262.R Saving _problems/test-createBindingConstraint-287.R Saving _problems/test-createBindingConstraint-327.R New/existing group : 'default' will be created/updated with dimension : [10] New/existing group : 'new_group' will be created/updated with dimension : [3] New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-createBindingConstraint-709.R Saving _problems/test-createBindingConstraint-745.R Saving _problems/test-createBindingConstraint-797.R Saving _problems/test-createBindingConstraint-814.R Saving _problems/test-createBindingConstraint-863.R Study successfully deletedSaving _problems/test-createBindingConstraint-1054.R Saving _problems/test-createBindingConstraint-1092.R Saving _problems/test-createBindingConstraint-1122.R Saving _problems/test-createCluster-18.R Saving _problems/test-createCluster-52.R Saving _problems/test-createCluster-61.R Saving _problems/test-createCluster-68.R Saving _problems/test-createCluster-143.R Study successfully deletedSaving _problems/test-createCluster-209.R Saving _problems/test-createCluster-248.R Study successfully deleted Study successfully deletedTime difference of 0.7423491 secs Saving _problems/test-createClusterBulk-116.R Time difference of 2.939609 secs Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-editBindingConstraint-45.R New/existing group : 'default' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-180.R New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-359.R Study successfully deletedSaving _problems/test-editCluster-14.R Saving _problems/test-editCluster-95.R Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-removeBindingConstraint-68.R Saving _problems/test-removeBindingConstraint-122.R Saving _problems/test-removeBindingConstraint-167.R Saving _problems/test-removeBindingConstraint-207.R Study successfully deletedSaving _problems/test-scenarioBuilder-11.R Study successfully deleted Study successfully deletedImporting mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the hourly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/common/capacity/maxpower_zone51.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% [ FAIL 38 | WARN 127 | SKIP 4 | PASS 644 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • Deprecated (1): 'test-compute_timeStamp_from_hourly.R:3:1' • Function requires study that spans on 2 years (TODO) (1): 'test-computeTimeStepFromHourly.R:3:1' • On CRAN (1): 'test-createArea.R:25:5' • empty test (1): 'test-createClusterBulk.R:152:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RES.R:78:3'): removeClusterRES(): check if the expected files are deleted ── 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(opts = simOptions()) at test-RES.R:78: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-ST.R:43:3'): removeClusterST(): check if the expected files are deleted ── 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 = simOptions()) at test-ST.R:43: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-createArea.R:119:5'): Remove an area ─────────────────────────── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:119:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:192:5'): create area / st-storage in 8.6.0 / Remove an area in 8.6.0 ── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:192:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:229:3'): removeArea() in 8.2.0 : check that properties.ini are all there ── 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. └─antaresEditObject::removeArea(name = area, opts = opts) at test-createArea.R:229:3 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:349:5'): removeArea(): check that area is removed if it is not referenced in a binding constraint and not removed if the area is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createArea.R:349:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:553:5'): New HYDRO default parameter / Remove area / check hydro params ── 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. └─antaresEditObject::removeArea(name = area_test) at test-createArea.R:553:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:186:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:186: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:231:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:231: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:259:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid link" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:259: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:282:5'): Create a new binding constraint with cluster coefficients (not with %) ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:282:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:327:5'): createBindingConstraintBulk v710 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:327:5 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:703:3'): bc with multi weight + offset properties ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:703:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:745:3'): createBindingConstraintBulk v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:745:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:794:3'): test bad dimension object with existing object in study v8.7 ── `createBindingConstraintBulk(list(bad_object))` threw an error with unexpected message. Expected match: "Problem dimension with group" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:794: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. └─antaresEditObject::createBindingConstraintBulk(list(bad_object)) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:814:3'): test NULL VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(list(BC_NULL_VALUES)) at test-createBindingConstraint.R:814:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:863:3'): test mixed VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(BC_MIX_VALUES) at test-createBindingConstraint.R:863:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1045:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1045: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:1089:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a link coefficient but you have no link in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1089: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1119:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1119: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:18:5'): Create a new 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. ├─testthat::expect_true(...) at test-createCluster.R:18:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area, "mycluster", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:52:5'): Create a cluster with default properties ── 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_true(...) at test-createCluster.R:52:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:61:5'): Remove a 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. ├─testthat::expect_false(...) at test-createCluster.R:61:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:68:5'): Remove all clusters ──────────────────── 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-createCluster.R:68:5 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-createCluster.R:143:5'): Create cluster with pollutants params (new feature v8.6) / Create cluster with parameter pollutant ── 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-createCluster.R:143:5 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-createCluster.R:203:5'): removeCluster() : cluster is not removed if it is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createCluster.R:203:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:248:3'): removeCluster(): check if the expected files are deleted ── 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(opts = simOptions()) at test-createCluster.R:248: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-createClusterBulk.R:116:3'): Create cluster bulk v8, time performance ── 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-createClusterBulk.R:116: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`(...) ── Failure ('test-editBindingConstraint.R:33:3'): editBindingConstraint v710 ─── `editBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-editBindingConstraint.R:33: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. └─antaresEditObject::editBindingConstraint(...) 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-editBindingConstraint.R:173:3'): editBindingConstraint with 'default' group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:173:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editBindingConstraint.R:351:3'): editBindingConstraint with existing group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:351:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editCluster.R:14:5'): Edit nominal capacity ──────────────────── 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-editCluster.R:14:5 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-editCluster.R:95:3'): Edit cluster with pollutants params (new feature v8.6) ── 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(opts = opts_test) at test-editCluster.R:95: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-removeBindingConstraint.R:61:3'): removeBindingConstraint v8.7.0 by name ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:61:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:115:3'): removeBindingConstraint v8.7.0 by names ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:115:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:160:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:160:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:200:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:200:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-scenarioBuilder.R:11: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-scenarioBuilder.R:7:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresEditObject (local) FUN(X[[i]], ...) 4. └─antaresEditObject::readScenarioBuilder(...) at test-scenarioBuilder.R:11:3 5. └─base::lapply(...) 6. └─antaresEditObject (local) FUN(X[[i]], ...) 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`(...) [ FAIL 38 | WARN 127 | SKIP 4 | PASS 644 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.9.3
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘Antares_new_features_v860.Rmd’ using rmarkdown Quitting from Antares_new_features_v860.Rmd:92-95 [read st-storage param] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterSTDesc() 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: processing vignette 'Antares_new_features_v860.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘Antares_new_features_v860.Rmd’ --- re-building ‘Antares_new_features_v920.Rmd’ using rmarkdown Quitting from Antares_new_features_v920.Rmd:73-91 [st-storage/group] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterSTDesc() 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: processing vignette 'Antares_new_features_v920.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘Antares_new_features_v920.Rmd’ --- re-building ‘Antares_new_features_v930.Rmd’ using rmarkdown Quitting from Antares_new_features_v930.Rmd:83-103 [creation/properties] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterSTDesc() 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: processing vignette 'Antares_new_features_v930.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘Antares_new_features_v930.Rmd’ --- re-building ‘antaresEditObject.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘antaresEditObject.Rmd’ --- re-building ‘api-variant-management.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘api-variant-management.Rmd’ --- re-building ‘renewables-energy-sources.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘renewables-energy-sources.Rmd’ --- re-building ‘scenario-builder.Rmd’ using rmarkdown Quitting from scenario-builder.Rmd:27-57 [unnamed-chunk-2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 9/9 in VECTOR_ELT --- Backtrace: ▆ 1. └─antaresRead::readClusterDesc() 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: processing vignette 'scenario-builder.Rmd' failed with diagnostics: attempt access index 9/9 in VECTOR_ELT --- failed re-building ‘scenario-builder.Rmd’ SUMMARY: processing the following files failed: ‘Antares_new_features_v860.Rmd’ ‘Antares_new_features_v920.Rmd’ ‘Antares_new_features_v930.Rmd’ ‘scenario-builder.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.9.3
Check: tests
Result: ERROR Running ‘testthat.R’ [153s/184s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > #Copyright © 2016 RTE Réseau de transport d’électricité > > # CRAN limite CPU usage > data.table::setDTthreads(2) > > library(testthat) > library(antaresEditObject) Loading required package: antaresRead > > test_check("antaresEditObject") Saving _problems/test-RES-78.R Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-ST-43.R Saving _problems/test-createArea-119.R Saving _problems/test-createArea-192.R Saving _problems/test-createArea-229.R Saving _problems/test-createArea-354.R Saving _problems/test-createArea-553.R Study successfully deleted Study successfully deletedSaving _problems/test-createBindingConstraint-193.R Saving _problems/test-createBindingConstraint-234.R Saving _problems/test-createBindingConstraint-262.R Saving _problems/test-createBindingConstraint-287.R Saving _problems/test-createBindingConstraint-327.R New/existing group : 'default' will be created/updated with dimension : [10] New/existing group : 'new_group' will be created/updated with dimension : [3] New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-createBindingConstraint-709.R Saving _problems/test-createBindingConstraint-745.R Saving _problems/test-createBindingConstraint-797.R Saving _problems/test-createBindingConstraint-814.R Saving _problems/test-createBindingConstraint-863.R Study successfully deletedSaving _problems/test-createBindingConstraint-1054.R Saving _problems/test-createBindingConstraint-1092.R Saving _problems/test-createBindingConstraint-1122.R Saving _problems/test-createCluster-18.R Saving _problems/test-createCluster-52.R Saving _problems/test-createCluster-61.R Saving _problems/test-createCluster-68.R Saving _problems/test-createCluster-143.R Study successfully deletedSaving _problems/test-createCluster-209.R Saving _problems/test-createCluster-248.R Study successfully deleted Study successfully deletedTime difference of 0.6894495 secs Saving _problems/test-createClusterBulk-116.R Time difference of 2.102302 secs Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-editBindingConstraint-45.R New/existing group : 'default' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-180.R New/existing group : 'group_test' will be created/updated with dimension : [10] Saving _problems/test-editBindingConstraint-359.R Study successfully deletedSaving _problems/test-editCluster-14.R Saving _problems/test-editCluster-95.R Study successfully deleted Study successfully deleted Study successfully deleted Study successfully deletedSaving _problems/test-removeBindingConstraint-68.R Saving _problems/test-removeBindingConstraint-122.R Saving _problems/test-removeBindingConstraint-167.R Saving _problems/test-removeBindingConstraint-207.R Study successfully deletedSaving _problems/test-scenarioBuilder-11.R Study successfully deleted Study successfully deletedImporting mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the hourly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/common/capacity/maxpower_zone51.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================= | 33% | |=============================================== | 67% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the annual condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the monthly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Data does not respect the weekly condition. You must check input/hydro/series/zone51/mingen.txt and input/hydro/series/zone51/mod.txt Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorage | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% Importing mingen | | | 0% | |======================================================================| 100% Importing hydroStorageMaxPower | | | 0% | |======================================================================| 100% [ FAIL 38 | WARN 127 | SKIP 4 | PASS 644 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • Deprecated (1): 'test-compute_timeStamp_from_hourly.R:3:1' • Function requires study that spans on 2 years (TODO) (1): 'test-computeTimeStepFromHourly.R:3:1' • On CRAN (1): 'test-createArea.R:25:5' • empty test (1): 'test-createClusterBulk.R:152:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-RES.R:78:3'): removeClusterRES(): check if the expected files are deleted ── 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(opts = simOptions()) at test-RES.R:78: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-ST.R:43:3'): removeClusterST(): check if the expected files are deleted ── 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 = simOptions()) at test-ST.R:43: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-createArea.R:119:5'): Remove an area ─────────────────────────── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:119:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:192:5'): create area / st-storage in 8.6.0 / Remove an area in 8.6.0 ── 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. └─antaresEditObject::removeArea(name = area2remove) at test-createArea.R:192:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:229:3'): removeArea() in 8.2.0 : check that properties.ini are all there ── 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. └─antaresEditObject::removeArea(name = area, opts = opts) at test-createArea.R:229:3 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:349:5'): removeArea(): check that area is removed if it is not referenced in a binding constraint and not removed if the area is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createArea.R:349:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createArea.R:553:5'): New HYDRO default parameter / Remove area / check hydro params ── 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. └─antaresEditObject::removeArea(name = area_test) at test-createArea.R:553:5 2. └─antaresEditObject:::.check_area_in_binding_constraint(name, opts) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:186:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:186: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:231:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:231: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:259:5'): Create a new binding constraint with BAD coefficients ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "not valid link" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:259: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:282:5'): Create a new binding constraint with cluster coefficients (not with %) ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:282:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:327:5'): createBindingConstraintBulk v710 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:327:5 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:703:3'): bc with multi weight + offset properties ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createBindingConstraint.R:703:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:745:3'): createBindingConstraintBulk v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(bindings_constraints) at test-createBindingConstraint.R:745:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:794:3'): test bad dimension object with existing object in study v8.7 ── `createBindingConstraintBulk(list(bad_object))` threw an error with unexpected message. Expected match: "Problem dimension with group" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:794: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. └─antaresEditObject::createBindingConstraintBulk(list(bad_object)) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:814:3'): test NULL VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(list(BC_NULL_VALUES)) at test-createBindingConstraint.R:814:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Error ('test-createBindingConstraint.R:863:3'): test mixed VALUES in study v8.7 ── 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. └─antaresEditObject::createBindingConstraintBulk(BC_MIX_VALUES) at test-createBindingConstraint.R:863:3 2. ├─base::do.call(...) 3. └─antaresRead::readClusterDesc(opts = opts) 4. └─antaresRead:::.readClusterDesc(...) 5. └─antaresRead:::get_input_cluster_properties(...) 6. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 7. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1045:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraint(...)` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1045: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. └─antaresEditObject::createBindingConstraint(...) 7. ├─antaresEditObject:::createBindingConstraint_(...) 8. │ └─base::nrow(clusters) 9. └─antaresRead::readClusterDesc(opts = 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-createBindingConstraint.R:1089:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a link coefficient but you have no link in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1089: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Failure ('test-createBindingConstraint.R:1119:3'): Control that you can not create a binding constraint link/cluster with no link/cluster in your study ── `createBindingConstraintBulk(constraints = lst_cstr, opts = simOptions())` threw an error with unexpected message. Expected match: "You are trying to create a binding constraint with a cluster coefficient but you have no cluster in your study." Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-createBindingConstraint.R:1119: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. └─antaresEditObject::createBindingConstraintBulk(...) 7. ├─base::do.call(...) 8. └─antaresRead::readClusterDesc(opts = opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:18:5'): Create a new 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. ├─testthat::expect_true(...) at test-createCluster.R:18:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area, "mycluster", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:52:5'): Create a cluster with default properties ── 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_true(...) at test-createCluster.R:52:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:61:5'): Remove a 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. ├─testthat::expect_false(...) at test-createCluster.R:61:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─paste(area2, "mycluster2", sep = "_") %in% ... 5. ├─base::levels(antaresRead::readClusterDesc()$cluster) 6. └─antaresRead::readClusterDesc() 7. └─antaresRead:::.readClusterDesc(...) 8. └─antaresRead:::get_input_cluster_properties(...) 9. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 10. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:68:5'): Remove all clusters ──────────────────── 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-createCluster.R:68:5 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-createCluster.R:143:5'): Create cluster with pollutants params (new feature v8.6) / Create cluster with parameter pollutant ── 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-createCluster.R:143:5 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-createCluster.R:203:5'): removeCluster() : cluster is not removed if it is referenced in a binding constraint ── 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. └─antaresEditObject::createBindingConstraint(...) at test-createCluster.R:203:5 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-createCluster.R:248:3'): removeCluster(): check if the expected files are deleted ── 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(opts = simOptions()) at test-createCluster.R:248: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-createClusterBulk.R:116:3'): Create cluster bulk v8, time performance ── 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-createClusterBulk.R:116: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`(...) ── Failure ('test-editBindingConstraint.R:33:3'): editBindingConstraint v710 ─── `editBindingConstraint(...)` threw an error with unexpected message. Expected match: "not valid cluster" Actual message: "attempt access index 9/9 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-editBindingConstraint.R:33: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. └─antaresEditObject::editBindingConstraint(...) 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-editBindingConstraint.R:173:3'): editBindingConstraint with 'default' group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:173:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editBindingConstraint.R:351:3'): editBindingConstraint with existing group v8.7.0 ── 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. └─antaresEditObject::createBindingConstraint(...) at test-editBindingConstraint.R:351:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-editCluster.R:14:5'): Edit nominal capacity ──────────────────── 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-editCluster.R:14:5 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-editCluster.R:95:3'): Edit cluster with pollutants params (new feature v8.6) ── 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(opts = opts_test) at test-editCluster.R:95: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-removeBindingConstraint.R:61:3'): removeBindingConstraint v8.7.0 by name ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:61:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:115:3'): removeBindingConstraint v8.7.0 by names ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:115:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:160:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:160:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-removeBindingConstraint.R:200:3'): removeBindingConstraint v8.7.0 by group ── 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. └─antaresEditObject::createBindingConstraint(...) at test-removeBindingConstraint.R:200:3 2. ├─antaresEditObject:::createBindingConstraint_(...) 3. │ └─base::nrow(clusters) 4. └─antaresRead::readClusterDesc(opts = opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-scenarioBuilder.R:11: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-scenarioBuilder.R:7:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresEditObject (local) FUN(X[[i]], ...) 4. └─antaresEditObject::readScenarioBuilder(...) at test-scenarioBuilder.R:11:3 5. └─base::lapply(...) 6. └─antaresEditObject (local) FUN(X[[i]], ...) 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`(...) [ FAIL 38 | WARN 127 | SKIP 4 | PASS 644 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Package antaresProcessing

Current CRAN status: ERROR: 4, OK: 9

Additional issues

donttest

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [42s/27s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresProcessing) Loading required package: antaresRead Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare > > test_check("antaresProcessing") Importing links | | | 0% | |======= | 10% | |============== | 20% | |===================== | 30% | |============================ | 40% | |=================================== | 50% | |========================================== | 60% | |================================================= | 70% | |======================================================== | 80% | |=============================================================== | 90% | |======================================================================| 100% Saving _problems/test-addCongestionLink-8.R Saving _problems/test-addDownwardMargin-13.R Saving _problems/test-fillClusterDesc-7.R Saving _problems/test-loadFactor-12.R Saving _problems/test-modulation-8.R Saving _problems/test-surplusClusters-9.R Saving _problems/test-surplusSectors-10.R [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • empty test (2): 'test-aggregateMcYears.R:7:3', ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-addCongestionLink.R:8:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(x, , `:=`(c("congestionFrequencyDirect", "congestionFrequencyIndirect", "congestionHoursDirect", "congestionHoursIndirect"), list(round(sum((`CONG. PROB +` != 0)/.N), 2), round(sum((`CONG. PROB -` != 0)/.N), 2), sum(`CONG. PROB +` != 0), sum(`CONG. PROB -` != 0))), by = by)`: attempt access index 34/34 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addCongestionLink.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresProcessing::addCongestionLink(dt) at test-addCongestionLink.R:8:3 5. ├─...[] 6. ├─antaresRead:::`[.antaresDataTable`(...) 7. ├─base::NextMethod("[", x) 8. └─data.table:::`[.data.table`(...) ── Error ('test-addDownwardMargin.R:7:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addDownwardMargin.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-addDownwardMargin.R:7:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) 7. └─antaresRead:::.importOutputForClusters(...) 8. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 9. └─antaresRead::readClusterDesc(opts) 10. └─antaresRead:::.readClusterDesc(...) 11. └─antaresRead:::get_input_cluster_properties(...) 12. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 13. └─data.table:::`[.data.table`(...) ── Error ('test-fillClusterDesc.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-fillClusterDesc.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readClusterDesc() at test-fillClusterDesc.R:7:3 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-loadFactor.R:12:5'): loadFactor ──────────────────────────────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(loadFactor(mydata)) at test-loadFactor.R:12:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresProcessing::loadFactor(mydata) 4. └─antaresRead::readClusterDesc(opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-modulation.R:8:3'): (code run outside of `test_that()`) ──────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-modulation.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(modulation(mydata)) at test-modulation.R:8:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::modulation(mydata) 7. └─antaresRead::readClusterDesc(opts) 8. └─antaresRead:::.readClusterDesc(...) 9. └─antaresRead:::get_input_cluster_properties(...) 10. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 11. └─data.table:::`[.data.table`(...) ── Error ('test-surplusClusters.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusClusters.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-surplusClusters.R:7:3 5. └─antaresRead (local) .addOutputToRes(...) 6. ├─base::suppressWarnings(...) 7. │ └─base::withCallingHandlers(...) 8. └─plyr::llply(...) 9. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 10. └─base::lapply(pieces, .fun, ...) 11. └─antaresRead (local) FUN(X[[i]], ...) 12. └─antaresRead (local) outputFun(x, ...) 13. └─antaresRead::readClusterDesc(opts) 14. └─antaresRead:::.readClusterDesc(...) 15. └─antaresRead:::get_input_cluster_properties(...) 16. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 17. └─data.table:::`[.data.table`(...) ── Error ('test-surplusSectors.R:10:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusSectors.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(surplusSectors(mydata)) at test-surplusSectors.R:10:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::surplusSectors(mydata) 7. └─antaresProcessing::surplusClusters(x, "hourly") 8. └─antaresRead::readClusterDesc(opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [31s/31s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresProcessing) Loading required package: antaresRead Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare > > test_check("antaresProcessing") Importing links | | | 0% | |======= | 10% | |============== | 20% | |===================== | 30% | |============================ | 40% | |=================================== | 50% | |========================================== | 60% | |================================================= | 70% | |======================================================== | 80% | |=============================================================== | 90% | |======================================================================| 100% Saving _problems/test-addCongestionLink-8.R Saving _problems/test-addDownwardMargin-13.R Saving _problems/test-fillClusterDesc-7.R Saving _problems/test-loadFactor-12.R Saving _problems/test-modulation-8.R Saving _problems/test-surplusClusters-9.R Saving _problems/test-surplusSectors-10.R [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • empty test (2): 'test-aggregateMcYears.R:7:3', ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-addCongestionLink.R:8:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(x, , `:=`(c("congestionFrequencyDirect", "congestionFrequencyIndirect", "congestionHoursDirect", "congestionHoursIndirect"), list(round(sum((`CONG. PROB +` != 0)/.N), 2), round(sum((`CONG. PROB -` != 0)/.N), 2), sum(`CONG. PROB +` != 0), sum(`CONG. PROB -` != 0))), by = by)`: attempt access index 34/34 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addCongestionLink.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresProcessing::addCongestionLink(dt) at test-addCongestionLink.R:8:3 5. ├─...[] 6. ├─antaresRead:::`[.antaresDataTable`(...) 7. ├─base::NextMethod("[", x) 8. └─data.table:::`[.data.table`(...) ── Error ('test-addDownwardMargin.R:7:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addDownwardMargin.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-addDownwardMargin.R:7:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) 7. └─antaresRead:::.importOutputForClusters(...) 8. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 9. └─antaresRead::readClusterDesc(opts) 10. └─antaresRead:::.readClusterDesc(...) 11. └─antaresRead:::get_input_cluster_properties(...) 12. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 13. └─data.table:::`[.data.table`(...) ── Error ('test-fillClusterDesc.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-fillClusterDesc.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readClusterDesc() at test-fillClusterDesc.R:7:3 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-loadFactor.R:12:5'): loadFactor ──────────────────────────────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(loadFactor(mydata)) at test-loadFactor.R:12:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresProcessing::loadFactor(mydata) 4. └─antaresRead::readClusterDesc(opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-modulation.R:8:3'): (code run outside of `test_that()`) ──────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-modulation.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(modulation(mydata)) at test-modulation.R:8:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::modulation(mydata) 7. └─antaresRead::readClusterDesc(opts) 8. └─antaresRead:::.readClusterDesc(...) 9. └─antaresRead:::get_input_cluster_properties(...) 10. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 11. └─data.table:::`[.data.table`(...) ── Error ('test-surplusClusters.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusClusters.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-surplusClusters.R:7:3 5. └─antaresRead (local) .addOutputToRes(...) 6. ├─base::suppressWarnings(...) 7. │ └─base::withCallingHandlers(...) 8. └─plyr::llply(...) 9. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 10. └─base::lapply(pieces, .fun, ...) 11. └─antaresRead (local) FUN(X[[i]], ...) 12. └─antaresRead (local) outputFun(x, ...) 13. └─antaresRead::readClusterDesc(opts) 14. └─antaresRead:::.readClusterDesc(...) 15. └─antaresRead:::get_input_cluster_properties(...) 16. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 17. └─data.table:::`[.data.table`(...) ── Error ('test-surplusSectors.R:10:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusSectors.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(surplusSectors(mydata)) at test-surplusSectors.R:10:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::surplusSectors(mydata) 7. └─antaresProcessing::surplusClusters(x, "hourly") 8. └─antaresRead::readClusterDesc(opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [51s/46s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresProcessing) Loading required package: antaresRead Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare > > test_check("antaresProcessing") Importing links | | | 0% | |======= | 10% | |============== | 20% | |===================== | 30% | |============================ | 40% | |=================================== | 50% | |========================================== | 60% | |================================================= | 70% | |======================================================== | 80% | |=============================================================== | 90% | |======================================================================| 100% Saving _problems/test-addCongestionLink-8.R Saving _problems/test-addDownwardMargin-13.R Saving _problems/test-fillClusterDesc-7.R Saving _problems/test-loadFactor-12.R Saving _problems/test-modulation-8.R Saving _problems/test-surplusClusters-9.R Saving _problems/test-surplusSectors-10.R [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • empty test (2): 'test-aggregateMcYears.R:7:3', ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-addCongestionLink.R:8:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(x, , `:=`(c("congestionFrequencyDirect", "congestionFrequencyIndirect", "congestionHoursDirect", "congestionHoursIndirect"), list(round(sum((`CONG. PROB +` != 0)/.N), 2), round(sum((`CONG. PROB -` != 0)/.N), 2), sum(`CONG. PROB +` != 0), sum(`CONG. PROB -` != 0))), by = by)`: attempt access index 34/34 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addCongestionLink.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresProcessing::addCongestionLink(dt) at test-addCongestionLink.R:8:3 5. ├─...[] 6. ├─antaresRead:::`[.antaresDataTable`(...) 7. ├─base::NextMethod("[", x) 8. └─data.table:::`[.data.table`(...) ── Error ('test-addDownwardMargin.R:7:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addDownwardMargin.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-addDownwardMargin.R:7:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) 7. └─antaresRead:::.importOutputForClusters(...) 8. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 9. └─antaresRead::readClusterDesc(opts) 10. └─antaresRead:::.readClusterDesc(...) 11. └─antaresRead:::get_input_cluster_properties(...) 12. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 13. └─data.table:::`[.data.table`(...) ── Error ('test-fillClusterDesc.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-fillClusterDesc.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readClusterDesc() at test-fillClusterDesc.R:7:3 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-loadFactor.R:12:5'): loadFactor ──────────────────────────────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(loadFactor(mydata)) at test-loadFactor.R:12:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresProcessing::loadFactor(mydata) 4. └─antaresRead::readClusterDesc(opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-modulation.R:8:3'): (code run outside of `test_that()`) ──────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-modulation.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(modulation(mydata)) at test-modulation.R:8:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::modulation(mydata) 7. └─antaresRead::readClusterDesc(opts) 8. └─antaresRead:::.readClusterDesc(...) 9. └─antaresRead:::get_input_cluster_properties(...) 10. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 11. └─data.table:::`[.data.table`(...) ── Error ('test-surplusClusters.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusClusters.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-surplusClusters.R:7:3 5. └─antaresRead (local) .addOutputToRes(...) 6. ├─base::suppressWarnings(...) 7. │ └─base::withCallingHandlers(...) 8. └─plyr::llply(...) 9. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 10. └─base::lapply(pieces, .fun, ...) 11. └─antaresRead (local) FUN(X[[i]], ...) 12. └─antaresRead (local) outputFun(x, ...) 13. └─antaresRead::readClusterDesc(opts) 14. └─antaresRead:::.readClusterDesc(...) 15. └─antaresRead:::get_input_cluster_properties(...) 16. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 17. └─data.table:::`[.data.table`(...) ── Error ('test-surplusSectors.R:10:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusSectors.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(surplusSectors(mydata)) at test-surplusSectors.R:10:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::surplusSectors(mydata) 7. └─antaresProcessing::surplusClusters(x, "hourly") 8. └─antaresRead::readClusterDesc(opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [46s/60s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresProcessing) Loading required package: antaresRead Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare > > test_check("antaresProcessing") Importing links | | | 0% | |======= | 10% | |============== | 20% | |===================== | 30% | |============================ | 40% | |=================================== | 50% | |========================================== | 60% | |================================================= | 70% | |======================================================== | 80% | |=============================================================== | 90% | |======================================================================| 100% Saving _problems/test-addCongestionLink-8.R Saving _problems/test-addDownwardMargin-13.R Saving _problems/test-fillClusterDesc-7.R Saving _problems/test-loadFactor-12.R Saving _problems/test-modulation-8.R Saving _problems/test-surplusClusters-9.R Saving _problems/test-surplusSectors-10.R [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • empty test (2): 'test-aggregateMcYears.R:7:3', ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-addCongestionLink.R:8:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(x, , `:=`(c("congestionFrequencyDirect", "congestionFrequencyIndirect", "congestionHoursDirect", "congestionHoursIndirect"), list(round(sum((`CONG. PROB +` != 0)/.N), 2), round(sum((`CONG. PROB -` != 0)/.N), 2), sum(`CONG. PROB +` != 0), sum(`CONG. PROB -` != 0))), by = by)`: attempt access index 34/34 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addCongestionLink.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresProcessing::addCongestionLink(dt) at test-addCongestionLink.R:8:3 5. ├─...[] 6. ├─antaresRead:::`[.antaresDataTable`(...) 7. ├─base::NextMethod("[", x) 8. └─data.table:::`[.data.table`(...) ── Error ('test-addDownwardMargin.R:7:3'): (code run outside of `test_that()`) ── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-addDownwardMargin.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(...) at test-addDownwardMargin.R:7:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresRead::readAntares(...) 7. └─antaresRead:::.importOutputForClusters(...) 8. └─antaresRead:::.importOutputForClusters_w_mustrun(...) 9. └─antaresRead::readClusterDesc(opts) 10. └─antaresRead:::.readClusterDesc(...) 11. └─antaresRead:::get_input_cluster_properties(...) 12. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 13. └─data.table:::`[.data.table`(...) ── Error ('test-fillClusterDesc.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-fillClusterDesc.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readClusterDesc() at test-fillClusterDesc.R:7:3 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-loadFactor.R:12:5'): loadFactor ──────────────────────────────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. ├─base::suppressWarnings(loadFactor(mydata)) at test-loadFactor.R:12:5 2. │ └─base::withCallingHandlers(...) 3. └─antaresProcessing::loadFactor(mydata) 4. └─antaresRead::readClusterDesc(opts) 5. └─antaresRead:::.readClusterDesc(...) 6. └─antaresRead:::get_input_cluster_properties(...) 7. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-modulation.R:8:3'): (code run outside of `test_that()`) ──────── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-modulation.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(modulation(mydata)) at test-modulation.R:8:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::modulation(mydata) 7. └─antaresRead::readClusterDesc(opts) 8. └─antaresRead:::.readClusterDesc(...) 9. └─antaresRead:::get_input_cluster_properties(...) 10. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 11. └─data.table:::`[.data.table`(...) ── Error ('test-surplusClusters.R:7:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusClusters.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. └─antaresRead::readAntares(...) at test-surplusClusters.R:7:3 5. └─antaresRead (local) .addOutputToRes(...) 6. ├─base::suppressWarnings(...) 7. │ └─base::withCallingHandlers(...) 8. └─plyr::llply(...) 9. ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces)) 10. └─base::lapply(pieces, .fun, ...) 11. └─antaresRead (local) FUN(X[[i]], ...) 12. └─antaresRead (local) outputFun(x, ...) 13. └─antaresRead::readClusterDesc(opts) 14. └─antaresRead:::.readClusterDesc(...) 15. └─antaresRead:::get_input_cluster_properties(...) 16. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 17. └─data.table:::`[.data.table`(...) ── Error ('test-surplusSectors.R:10:3'): (code run outside of `test_that()`) ─── Error in ``[.data.table`(ref_filter_by_vers, , `:=`(count, .N), by = select_col, keyby = TRUE)`: attempt access index 9/9 in VECTOR_ELT Backtrace: ▆ 1. └─base::sapply(...) at test-surplusSectors.R:3:1 2. └─base::lapply(X = X, FUN = FUN, ...) 3. └─antaresProcessing (local) FUN(X[[i]], ...) 4. ├─base::suppressWarnings(surplusSectors(mydata)) at test-surplusSectors.R:10:3 5. │ └─base::withCallingHandlers(...) 6. └─antaresProcessing::surplusSectors(mydata) 7. └─antaresProcessing::surplusClusters(x, "hourly") 8. └─antaresRead::readClusterDesc(opts) 9. └─antaresRead:::.readClusterDesc(...) 10. └─antaresRead:::get_input_cluster_properties(...) 11. ├─ref_filter_by_vers[, `:=`(count, .N), by = select_col, keyby = TRUE] 12. └─data.table:::`[.data.table`(...) [ FAIL 7 | WARN 2 | SKIP 2 | PASS 130 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Package antaresRead

Current CRAN status: ERROR: 4, OK: 9

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’ [48s/50s] 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

Package antaresViz

Current CRAN status: ERROR: 4, OK: 9

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [69s/56s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresViz) Loading required package: antaresRead Loading required package: antaresProcessing Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare Loading required package: spMaps Loading required package: sf Linking to GEOS 3.14.1, GDAL 3.12.0, PROJ 9.7.1; sf_use_s2() is TRUE Loading required package: sp > > # CRAN limite CPU usage > # issue : > data.table::setDTthreads(2) > > test_check("antaresViz") Saving _problems/test-plotThermalGroupCapacities-5.R [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • .runExchangesStackTest is not TRUE (4): 'test-exchangesStack.R:225:3', 'test-exchangesStack.R:276:3', 'test-exchangesStack.R:367:3', 'test-exchangesStack.R:421:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plotThermalGroupCapacities.R:5:3'): plotThermalGroupCapacities ── 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. ├─antaresViz::plotThermalGroupCapacities(data = thermalGroupCapacities(opts)) at test-plotThermalGroupCapacities.R:5:3 2. │ └─data.table::dcast(data, area ~ group, value.var = "thermalGroupCapacities") 3. │ └─data.table::is.data.table(data) 4. └─antaresProcessing::thermalGroupCapacities(opts) 5. └─antaresRead::readClusterDesc(opts) 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`(...) [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [39s/44s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresViz) Loading required package: antaresRead Loading required package: antaresProcessing Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare Loading required package: spMaps Loading required package: sf Linking to GEOS 3.14.1, GDAL 3.12.0, PROJ 9.7.1; sf_use_s2() is TRUE Loading required package: sp > > # CRAN limite CPU usage > # issue : > data.table::setDTthreads(2) > > test_check("antaresViz") Saving _problems/test-plotThermalGroupCapacities-5.R [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • .runExchangesStackTest is not TRUE (4): 'test-exchangesStack.R:225:3', 'test-exchangesStack.R:276:3', 'test-exchangesStack.R:367:3', 'test-exchangesStack.R:421:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plotThermalGroupCapacities.R:5:3'): plotThermalGroupCapacities ── 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. ├─antaresViz::plotThermalGroupCapacities(data = thermalGroupCapacities(opts)) at test-plotThermalGroupCapacities.R:5:3 2. │ └─data.table::dcast(data, area ~ group, value.var = "thermalGroupCapacities") 3. │ └─data.table::is.data.table(data) 4. └─antaresProcessing::thermalGroupCapacities(opts) 5. └─antaresRead::readClusterDesc(opts) 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`(...) [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [85s/63s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresViz) Loading required package: antaresRead Loading required package: antaresProcessing Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare Loading required package: spMaps Loading required package: sf Linking to GEOS 3.13.0, GDAL 3.11.5, PROJ 9.6.2; sf_use_s2() is TRUE Loading required package: sp > > # CRAN limite CPU usage > # issue : > data.table::setDTthreads(2) > > test_check("antaresViz") Saving _problems/test-plotThermalGroupCapacities-5.R [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • .runExchangesStackTest is not TRUE (4): 'test-exchangesStack.R:225:3', 'test-exchangesStack.R:276:3', 'test-exchangesStack.R:367:3', 'test-exchangesStack.R:421:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plotThermalGroupCapacities.R:5:3'): plotThermalGroupCapacities ── 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. ├─antaresViz::plotThermalGroupCapacities(data = thermalGroupCapacities(opts)) at test-plotThermalGroupCapacities.R:5:3 2. │ └─data.table::dcast(data, area ~ group, value.var = "thermalGroupCapacities") 3. │ └─data.table::is.data.table(data) 4. └─antaresProcessing::thermalGroupCapacities(opts) 5. └─antaresRead::readClusterDesc(opts) 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`(...) [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.18.3
Check: tests
Result: ERROR Running ‘testthat.R’ [64s/64s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(antaresViz) Loading required package: antaresRead Loading required package: antaresProcessing Attaching package: 'antaresProcessing' The following object is masked from 'package:testthat': compare Loading required package: spMaps Loading required package: sf Linking to GEOS 3.13.0, GDAL 3.10.3, PROJ 9.6.2; sf_use_s2() is TRUE Loading required package: sp > > # CRAN limite CPU usage > # issue : > data.table::setDTthreads(2) > > test_check("antaresViz") Saving _problems/test-plotThermalGroupCapacities-5.R [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • .runExchangesStackTest is not TRUE (4): 'test-exchangesStack.R:225:3', 'test-exchangesStack.R:276:3', 'test-exchangesStack.R:367:3', 'test-exchangesStack.R:421:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plotThermalGroupCapacities.R:5:3'): plotThermalGroupCapacities ── 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. ├─antaresViz::plotThermalGroupCapacities(data = thermalGroupCapacities(opts)) at test-plotThermalGroupCapacities.R:5:3 2. │ └─data.table::dcast(data, area ~ group, value.var = "thermalGroupCapacities") 3. │ └─data.table::is.data.table(data) 4. └─antaresProcessing::thermalGroupCapacities(opts) 5. └─antaresRead::readClusterDesc(opts) 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`(...) [ FAIL 1 | WARN 16 | SKIP 4 | PASS 202 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Package leaflet.minicharts

Current CRAN status: OK: 13

Package spMaps

Current CRAN status: OK: 13