Last updated on 2025-12-21 11:50:26 CET.
| Package | ERROR | OK |
|---|---|---|
| mknapsack | 9 | 4 |
Current CRAN status: ERROR: 9, OK: 4
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(data.table)
+ })
>
> test_check("mknapsack")
Loading required package: mknapsack
Saving _problems/test-packing-17.R
Saving _problems/test-packing-34.R
Saving _problems/test-packing-74.R
Saving _problems/test-packing-153.R
Saving _problems/test-packing-161.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-packing.R:17:5'): group_moq / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:17:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:34:5'): mknapsack / Generates vector of optimal containers for a given problem ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:34:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:74:7'): mknapsack / with sold vector, sold items have highest priority ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:74:7
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:146:5'): solver / calls correct method based on the option value ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test-packing.R:146:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test-packing.R:161:8'): at contains MOQ line or after / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:161:8
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(data.table)
+ })
>
> test_check("mknapsack")
Loading required package: mknapsack
Saving _problems/test-packing-17.R
Saving _problems/test-packing-34.R
Saving _problems/test-packing-74.R
Saving _problems/test-packing-153.R
Saving _problems/test-packing-161.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-packing.R:17:5'): group_moq / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:17:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:34:5'): mknapsack / Generates vector of optimal containers for a given problem ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:34:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:74:7'): mknapsack / with sold vector, sold items have highest priority ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:74:7
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:146:5'): solver / calls correct method based on the option value ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test-packing.R:146:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test-packing.R:161:8'): at contains MOQ line or after / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:161:8
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(data.table)
+ })
>
> test_check("mknapsack")
Loading required package: mknapsack
Saving _problems/test-packing-17.R
Saving _problems/test-packing-34.R
Saving _problems/test-packing-74.R
Saving _problems/test-packing-153.R
Saving _problems/test-packing-161.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-packing.R:17:5'): group_moq / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:17:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:34:5'): mknapsack / Generates vector of optimal containers for a given problem ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:34:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:74:7'): mknapsack / with sold vector, sold items have highest priority ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:74:7
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:146:5'): solver / calls correct method based on the option value ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test-packing.R:146:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test-packing.R:161:8'): at contains MOQ line or after / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:161:8
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [78s/109s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(data.table)
+ })
>
> test_check("mknapsack")
Loading required package: mknapsack
Saving _problems/test-packing-17.R
Saving _problems/test-packing-34.R
Saving _problems/test-packing-74.R
Saving _problems/test-packing-153.R
Saving _problems/test-packing-161.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-packing.R:17:5'): group_moq / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:17:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:34:5'): mknapsack / Generates vector of optimal containers for a given problem ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:34:5
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:74:7'): mknapsack / with sold vector, sold items have highest priority ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:74:7
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
── Error ('test-packing.R:146:5'): solver / calls correct method based on the option value ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test-packing.R:146:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test-packing.R:161:8'): at contains MOQ line or after / combines data provided at unit level to MOQ level ──
Error in ``[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─mknapsack::group_moq(units) at test-packing.R:161:8
2. ├─dt[, `:=`(cnt, 1:.N), by = sku]
3. └─data.table:::`[.data.table`(dt, , `:=`(cnt, 1:.N), by = sku)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 9 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(data.table)
+ })
>
> test_check("mknapsack")
Loading required package: mknapsack
Saving _problems/test-packing-153.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 21 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-packing.R:146:5'): solver / calls correct method based on the option value ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test-packing.R:146:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 21 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(data.table)
+ })
>
> test_check("mknapsack")
Loading required package: mknapsack
Saving _problems/test-packing-153.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 21 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-packing.R:146:5'): solver / calls correct method based on the option value ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test-packing.R:146:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 21 ]
Error:
! Test failures.
Execution halted
Flavors: r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.1.0
Check: tests
Result: ERROR
Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(data.table)
+ })
>
> test_check("mknapsack")
Loading required package: mknapsack
Saving _problems/test-packing-153.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 21 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-packing.R:146:5'): solver / calls correct method based on the option value ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test-packing.R:146:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 21 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64