Last updated on 2025-12-20 11:50:17 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.1 | 26.43 | 292.21 | 318.64 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 0.1.1 | 18.02 | 203.66 | 221.68 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.1.1 | 48.00 | 455.31 | 503.31 | ERROR | |
| r-devel-linux-x86_64-fedora-gcc | 0.1.1 | 46.00 | 459.41 | 505.41 | ERROR | |
| r-devel-windows-x86_64 | 0.1.1 | 28.00 | 498.00 | 526.00 | OK | |
| r-patched-linux-x86_64 | 0.1.1 | 28.62 | 699.13 | 727.75 | OK | |
| r-release-linux-x86_64 | 0.1.1 | 26.19 | 696.35 | 722.54 | OK | |
| r-release-macos-arm64 | 0.1.1 | OK | ||||
| r-release-macos-x86_64 | 0.1.1 | 15.00 | 434.00 | 449.00 | OK | |
| r-release-windows-x86_64 | 0.1.1 | 28.00 | 496.00 | 524.00 | OK | |
| r-oldrel-macos-arm64 | 0.1.1 | NOTE | ||||
| r-oldrel-macos-x86_64 | 0.1.1 | 16.00 | 456.00 | 472.00 | NOTE | |
| r-oldrel-windows-x86_64 | 0.1.1 | 37.00 | 660.00 | 697.00 | NOTE |
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [33s/39s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(cramR)
>
> # Suppress the creation of __pycache__ directories during Python-related operations
> Sys.setenv(PYTHONDONTWRITEBYTECODE = 1)
>
> test_check("cramR")
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:01.603
Computing statistics.
Saving _problems/test_cram_bandit_sim-15.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:00.902
Computing statistics.
Saving _problems/test_cram_bandit_sim-32.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:01.187
Computing statistics.
Saving _problems/test_cram_bandit_sim-49.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:01.044
Computing statistics.
Saving _problems/test_cram_bandit_sim-67.R
Simulation horizon: 20
Number of simulations: 6
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:00.445
Computing statistics.
Saving _problems/test_cram_bandit_sim-85.R
Attaching package: 'waldo'
The following object is masked from 'package:testthat':
compare
Loading required package: ggplot2
Loading required package: lattice
Loading required package: Matrix
Loaded glmnet 4.1-10
Saving _problems/test_cram_simulation-57.R
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• Skipping this test temporarily (3): 'test_cram_learning.R:42:3',
'test_cram_policy.R:41:3', 'test_cram_policy.R:156:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_cram_bandit_sim.R:15:3'): cram_bandit_sim runs and returns expected structure with batch epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:15:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:32:3'): cram_bandit_sim runs and returns expected structure with batch = 1 epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:32:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:49:3'): cram_bandit_sim runs and returns expected structure with ucb ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:49:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:67:3'): cram_bandit_sim runs and returns expected structure with thompson ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:67:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:85:3'): cram_bandit_sim returns finite numeric outputs ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:85:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_simulation.R:49:3'): cram_simulation runs correctly and returns expected metrics ──
Error in ``[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_simulation(...) at test_cram_simulation.R:49:3
2. ├─big_X[, `:=`(D, dgp_D(.SD)), by = sim_id]
3. └─data.table:::`[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.1
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘cram_bandit.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_bandit.Rmd’
--- re-building ‘cram_bandit_helpers.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_bandit_helpers.Rmd’
--- re-building ‘cram_bandit_simulation.Rmd’ using rmarkdown
Quitting from cram_bandit_simulation.Rmd:76-106 [contextual-example]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 7/7 in VECTOR_ELT
---
Backtrace:
▆
1. └─cramR::cram_bandit_sim(...)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'cram_bandit_simulation.Rmd' failed with diagnostics:
attempt access index 7/7 in VECTOR_ELT
--- failed re-building ‘cram_bandit_simulation.Rmd’
--- re-building ‘cram_ml.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_ml.Rmd’
--- re-building ‘cram_policy_part_1.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_policy_part_1.Rmd’
--- re-building ‘cram_policy_part_2.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_policy_part_2.Rmd’
--- re-building ‘cram_policy_simulation.Rmd’ using rmarkdown
Quitting from cram_policy_simulation.Rmd:50-100 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 4/4 in VECTOR_ELT
---
Backtrace:
▆
1. └─cramR::cram_simulation(...)
2. ├─big_X[, `:=`(D, dgp_D(.SD)), by = sim_id]
3. └─data.table:::`[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'cram_policy_simulation.Rmd' failed with diagnostics:
attempt access index 4/4 in VECTOR_ELT
--- failed re-building ‘cram_policy_simulation.Rmd’
--- re-building ‘quickstart.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘quickstart.Rmd’
SUMMARY: processing the following files failed:
‘cram_bandit_simulation.Rmd’ ‘cram_policy_simulation.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.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [22s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(cramR)
>
> # Suppress the creation of __pycache__ directories during Python-related operations
> Sys.setenv(PYTHONDONTWRITEBYTECODE = 1)
>
> test_check("cramR")
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:01.104
Computing statistics.
Saving _problems/test_cram_bandit_sim-15.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:00.799
Computing statistics.
Saving _problems/test_cram_bandit_sim-32.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:00.684
Computing statistics.
Saving _problems/test_cram_bandit_sim-49.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:00.683
Computing statistics.
Saving _problems/test_cram_bandit_sim-67.R
Simulation horizon: 20
Number of simulations: 6
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:00.666
Computing statistics.
Saving _problems/test_cram_bandit_sim-85.R
Attaching package: 'waldo'
The following object is masked from 'package:testthat':
compare
Loading required package: ggplot2
Loading required package: lattice
Loading required package: Matrix
Loaded glmnet 4.1-10
Saving _problems/test_cram_simulation-57.R
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• Skipping this test temporarily (3): 'test_cram_learning.R:42:3',
'test_cram_policy.R:41:3', 'test_cram_policy.R:156:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_cram_bandit_sim.R:15:3'): cram_bandit_sim runs and returns expected structure with batch epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:15:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:32:3'): cram_bandit_sim runs and returns expected structure with batch = 1 epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:32:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:49:3'): cram_bandit_sim runs and returns expected structure with ucb ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:49:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:67:3'): cram_bandit_sim runs and returns expected structure with thompson ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:67:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:85:3'): cram_bandit_sim returns finite numeric outputs ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:85:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_simulation.R:49:3'): cram_simulation runs correctly and returns expected metrics ──
Error in ``[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_simulation(...) at test_cram_simulation.R:49:3
2. ├─big_X[, `:=`(D, dgp_D(.SD)), by = sim_id]
3. └─data.table:::`[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [46s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(cramR)
>
> # Suppress the creation of __pycache__ directories during Python-related operations
> Sys.setenv(PYTHONDONTWRITEBYTECODE = 1)
>
> test_check("cramR")
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:02.808
Computing statistics.
Saving _problems/test_cram_bandit_sim-15.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:01.923
Computing statistics.
Saving _problems/test_cram_bandit_sim-32.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:02.425
Computing statistics.
Saving _problems/test_cram_bandit_sim-49.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:03.957
Computing statistics.
Saving _problems/test_cram_bandit_sim-67.R
Simulation horizon: 20
Number of simulations: 6
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:01.422
Computing statistics.
Saving _problems/test_cram_bandit_sim-85.R
Attaching package: 'waldo'
The following object is masked from 'package:testthat':
compare
Loading required package: ggplot2
Loading required package: lattice
Loading required package: Matrix
Loaded glmnet 4.1-10
Saving _problems/test_cram_simulation-57.R
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• Skipping this test temporarily (3): 'test_cram_learning.R:42:3',
'test_cram_policy.R:41:3', 'test_cram_policy.R:156:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_cram_bandit_sim.R:15:3'): cram_bandit_sim runs and returns expected structure with batch epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:15:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:32:3'): cram_bandit_sim runs and returns expected structure with batch = 1 epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:32:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:49:3'): cram_bandit_sim runs and returns expected structure with ucb ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:49:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:67:3'): cram_bandit_sim runs and returns expected structure with thompson ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:67:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:85:3'): cram_bandit_sim returns finite numeric outputs ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:85:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_simulation.R:49:3'): cram_simulation runs correctly and returns expected metrics ──
Error in ``[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_simulation(...) at test_cram_simulation.R:49:3
2. ├─big_X[, `:=`(D, dgp_D(.SD)), by = sim_id]
3. └─data.table:::`[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.1
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘cram_bandit.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_bandit.Rmd’
--- re-building ‘cram_bandit_helpers.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_bandit_helpers.Rmd’
--- re-building ‘cram_bandit_simulation.Rmd’ using rmarkdown
Quitting from cram_bandit_simulation.Rmd:76-106 [contextual-example]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 7/7 in VECTOR_ELT
---
Backtrace:
▆
1. └─cramR::cram_bandit_sim(...)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'cram_bandit_simulation.Rmd' failed with diagnostics:
attempt access index 7/7 in VECTOR_ELT
--- failed re-building ‘cram_bandit_simulation.Rmd’
--- re-building ‘cram_ml.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_ml.Rmd’
--- re-building ‘cram_policy_part_1.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_policy_part_1.Rmd’
--- re-building ‘cram_policy_part_2.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘cram_policy_part_2.Rmd’
--- re-building ‘cram_policy_simulation.Rmd’ using rmarkdown
Quitting from cram_policy_simulation.Rmd:50-100 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 4/4 in VECTOR_ELT
---
Backtrace:
▆
1. └─cramR::cram_simulation(...)
2. ├─big_X[, `:=`(D, dgp_D(.SD)), by = sim_id]
3. └─data.table:::`[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'cram_policy_simulation.Rmd' failed with diagnostics:
attempt access index 4/4 in VECTOR_ELT
--- failed re-building ‘cram_policy_simulation.Rmd’
--- re-building ‘quickstart.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘quickstart.Rmd’
SUMMARY: processing the following files failed:
‘cram_bandit_simulation.Rmd’ ‘cram_policy_simulation.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.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [46s/142s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(cramR)
>
> # Suppress the creation of __pycache__ directories during Python-related operations
> Sys.setenv(PYTHONDONTWRITEBYTECODE = 1)
>
> test_check("cramR")
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:05.920
Computing statistics.
Saving _problems/test_cram_bandit_sim-15.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:03.825
Computing statistics.
Saving _problems/test_cram_bandit_sim-32.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:05.478
Computing statistics.
Saving _problems/test_cram_bandit_sim-49.R
Simulation horizon: 100
Number of simulations: 11
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:05.248
Computing statistics.
Saving _problems/test_cram_bandit_sim-67.R
Simulation horizon: 20
Number of simulations: 6
Number of batches: 1
Starting main loop.
Finished main loop.
Completed simulation in 0:00:01.155
Computing statistics.
Saving _problems/test_cram_bandit_sim-85.R
Attaching package: 'waldo'
The following object is masked from 'package:testthat':
compare
Loading required package: ggplot2
Loading required package: lattice
Loading required package: Matrix
Loaded glmnet 4.1-10
Saving _problems/test_cram_simulation-57.R
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• Skipping this test temporarily (3): 'test_cram_learning.R:42:3',
'test_cram_policy.R:41:3', 'test_cram_policy.R:156:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_cram_bandit_sim.R:15:3'): cram_bandit_sim runs and returns expected structure with batch epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:15:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:32:3'): cram_bandit_sim runs and returns expected structure with batch = 1 epsilon greedy ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:32:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:49:3'): cram_bandit_sim runs and returns expected structure with ucb ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:49:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:67:3'): cram_bandit_sim runs and returns expected structure with thompson ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:67:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_bandit_sim.R:85:3'): cram_bandit_sim returns finite numeric outputs ──
Error in ``[.data.table`(res, , `:=`(probas, list(compute_probas(.SD, policy, policy_name, batch_size = batch_size))), by = .(agent, sim))`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_bandit_sim(horizon, simulations, bandit, policy) at test_cram_bandit_sim.R:85:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_cram_simulation.R:49:3'): cram_simulation runs correctly and returns expected metrics ──
Error in ``[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─cramR::cram_simulation(...) at test_cram_simulation.R:49:3
2. ├─big_X[, `:=`(D, dgp_D(.SD)), by = sim_id]
3. └─data.table:::`[.data.table`(big_X, , `:=`(D, dgp_D(.SD)), by = sim_id)
[ FAIL 6 | WARN 0 | SKIP 3 | PASS 127 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.1
Check: installed package size
Result: NOTE
installed size is 5.2Mb
sub-directories of 1Mb or more:
doc 2.2Mb
help 2.4Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64