Running ‘testthat.R’ [206s/243s]
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(BSCB)
  > 
  > test_check("BSCB")
  The critical constant lambda = 2.731768
  Computing lambda via Monte Carlo sampling...
  [1] Call of the function:
  OptimalDesign::od_KL(Fx = design_matrix, N = n, crit = "D", K = 7, 
      L = 19, t.max = 5)
  [1] Call of the function:
  od_REX(Fx = Fx, crit = "D", track = FALSE)
  [1] Running od_D_KL for cca 5 seconds starting at 2026-07-11 02:22:05.684921.
  [1] The problem size is n=300000, m=3, N=20
  [1] Setting K=7, L=19
  [1] od_D_KL Time: 2.5 Value: 159.232998 Efficiency: 0.601863
  [1] od_D_KL Time: 3 Value: 159.232998 Efficiency: 0.601863
  [1] od_D_KL Time: 4 Value: 159.232998 Efficiency: 0.601863
  [1] od_D_KL finished after 5.02 seconds at 2026-07-11 02:22:10.700566
  [1] with 1 restarts and 41 exchanges.
  [1] Call of the function:
  OptimalDesign::od_KL(Fx = design_matrix, N = n, crit = "D", K = 7, 
      L = 19, t.max = 5)
  [1] Call of the function:
  od_REX(Fx = Fx, crit = "D", track = FALSE)
  [1] Running od_D_KL for cca 5 seconds starting at 2026-07-11 02:22:12.688744.
  [1] The problem size is n=300000, m=3, N=20
  [1] Setting K=7, L=19
  [1] od_D_KL Time: 2 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 2 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 3 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 4 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL finished after 5.03 seconds at 2026-07-11 02:22:17.718212
  [1] with 2 restarts and 43 exchanges.
  [1] Call of the function:
  OptimalDesign::od_KL(Fx = design_matrix, N = n, crit = "D", K = 7, 
      L = 19, t.max = 5)
  [1] Call of the function:
  od_REX(Fx = Fx, crit = "D", track = FALSE)
  [1] Running od_D_KL for cca 5 seconds starting at 2026-07-11 02:22:19.493942.
  [1] The problem size is n=300000, m=3, N=20
  [1] Setting K=7, L=19
  [1] od_D_KL Time: 2.1 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 3.1 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 4 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL finished after 5.02 seconds at 2026-07-11 02:22:24.514253
  [1] with 1 restarts and 43 exchanges.
  [1] Call of the function:
  OptimalDesign::od_KL(Fx = design_matrix, N = n, crit = "D", K = 7, 
      L = 19, t.max = 5)
  [1] Call of the function:
  od_REX(Fx = Fx, crit = "D", track = FALSE)
  [1] Running od_D_KL for cca 5 seconds starting at 2026-07-11 02:22:26.910946.
  [1] The problem size is n=300000, m=3, N=20
  [1] Setting K=7, L=19
  [1] od_D_KL Time: 1.8 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL Time: 2 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL Time: 3 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL Time: 4.1 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL finished after 5.03 seconds at 2026-07-11 02:22:31.944093
  [1] with 2 restarts and 61 exchanges.
  [1] Call of the function:
  OptimalDesign::od_KL(Fx = design_matrix, N = n, crit = "D", K = 7, 
      L = 19, t.max = 5)
  [1] Call of the function:
  od_REX(Fx = Fx, crit = "D", track = FALSE)
  [1] Running od_D_KL for cca 5 seconds starting at 2026-07-11 02:22:34.106526.
  [1] The problem size is n=300000, m=3, N=20
  [1] Setting K=7, L=19
  [1] od_D_KL Time: 2 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL Time: 2 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL Time: 3 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL Time: 4.1 Value: 198.368169 Efficiency: 0.749785
  [1] od_D_KL finished after 5.02 seconds at 2026-07-11 02:22:39.132829
  [1] with 1 restarts and 43 exchanges.
  Saving _problems/test_generate_simulation_data-46.R
  [1] Call of the function:
  OptimalDesign::od_KL(Fx = design_matrix, N = n, crit = "D", K = 7, 
      L = 19, t.max = 5)
  [1] Call of the function:
  od_REX(Fx = Fx, crit = "D", track = FALSE)
  [1] Running od_D_KL for cca 5 seconds starting at 2026-07-11 02:22:41.183755.
  [1] The problem size is n=300000, m=3, N=20
  [1] Setting K=7, L=19
  [1] od_D_KL Time: 2 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 3.1 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 4 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL finished after 5.04 seconds at 2026-07-11 02:22:46.223978
  [1] with 2 restarts and 48 exchanges.
  [1] Call of the function:
  OptimalDesign::od_KL(Fx = design_matrix, N = n, crit = "D", K = 7, 
      L = 19, t.max = 5)
  [1] Call of the function:
  od_REX(Fx = Fx, crit = "D", track = FALSE)
  [1] Running od_D_KL for cca 5 seconds starting at 2026-07-11 02:22:48.44375.
  [1] The problem size is n=300000, m=3, N=20
  [1] Setting K=7, L=19
  [1] od_D_KL Time: 2 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 2.1 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 3 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL Time: 4 Value: 185.867358 Efficiency: 0.702535
  [1] od_D_KL finished after 5.03 seconds at 2026-07-11 02:22:53.474049
  [1] with 2 restarts and 56 exchanges.
  [ FAIL 1 | WARN 0 | SKIP 17 | PASS 140 ]
  
  ══ Skipped tests (17) ══════════════════════════════════════════════════════════
  • On CRAN (17): 'test_compute_bscb_conjugate.R:373:3',
    'test_compute_bscb_hmc.R:29:3', 'test_compute_bscb_hmc.R:52:3',
    'test_compute_bscb_hmc.R:74:3', 'test_compute_bscb_hmc.R:92:3',
    'test_compute_bscb_hmc.R:109:3', 'test_compute_bscb_hmc.R:127:3',
    'test_compute_bscb_hmc.R:145:3', 'test_compute_bscb_hmc.R:162:3',
    'test_compute_bscb_hmc.R:179:3', 'test_compute_bscb_hmc.R:197:3',
    'test_compute_bscb_hmc.R:214:3', 'test_compute_bscb_hmc.R:233:3',
    'test_compute_bscb_hmc.R:252:3', 'test_compute_bscb_hmc.R:304:3',
    'test_coverage_bscb.R:172:3', 'test_coverage_bscb.R:202:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_generate_simulation_data.R:46:3'): results are reproducible with same batch_index and same seed ──
  Expected `sim1$Y.list` to be identical to `sim2$Y.list`.
  Differences:
  actual[[1]] vs expected[[1]]
                              [,1]
    actual[[1]][4, ]     15.623926
    actual[[1]][5, ]     15.272053
    actual[[1]][6, ]     15.533853
  - actual[[1]][7, ]     -5.906518
  + expected[[1]][7, ]   15.343432
    actual[[1]][8, ]     -6.124319
    actual[[1]][9, ]     -5.673072
    actual[[1]][10, ]    -5.939421
  - actual[[1]][11, ]    -6.318793
  + expected[[1]][11, ]  -6.318693
    actual[[1]][12, ]    -6.181542
    actual[[1]][13, ]    -6.124639
  and 1 more ...
  
  actual[[2]] vs expected[[2]]
                              [,1]
    actual[[2]][4, ]     15.229630
    actual[[2]][5, ]     15.214731
    actual[[2]][6, ]     15.529962
  - actual[[2]][7, ]     -5.996960
  + expected[[2]][7, ]   15.252990
    actual[[2]][8, ]     -5.821764
    actual[[2]][9, ]     -5.889276
    actual[[2]][10, ]    -6.117609
  - actual[[2]][11, ]    -5.705255
  + expected[[2]][11, ]  -5.705155
    actual[[2]][12, ]    -5.932803
    actual[[2]][13, ]    -6.316321
  and 1 more ...
  
  
  [ FAIL 1 | WARN 0 | SKIP 17 | PASS 140 ]
  Error:
  ! Test failures.
  Execution halted