- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘cramR/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘cramR’ version ‘0.1.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/3s] OK
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘cramR’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [6s/7s] OK
- checking whether the package can be loaded with stated dependencies ... [5s/6s] OK
- checking whether the package can be unloaded cleanly ... [5s/7s] OK
- checking whether the namespace can be loaded with stated dependencies ... [5s/6s] OK
- checking whether the namespace can be unloaded cleanly ... [5s/7s] OK
- checking loading without being on the library search path ... [5s/6s] OK
- checking whether startup messages can be suppressed ... [5s/6s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [32s/40s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [7s/10s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [33s/39s] 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [107s/157s] 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
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs