Running ‘testthat.R’ [182s/195s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard testthat setup.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do your testing?
  > # Learn more about testing at https://r-pkgs.org/testing-basics.html
  > 
  > library(testthat)
  > library(irtsim)
  > 
  > test_check("irtsim")
  Iteration 5/10
  Iteration 10/10
  
  Iteration 4/5
  Iteration 5/5
  
  Saving _problems/test-grm_integration-389.R
  IRT Design
    Model:        2PL 
    Items:        20 items
    Theta dist:   normal 
    Factors:      1 
    a range:      [0.221, 22.034]
    b range:      [-1.198, 1.443]
  Iteration 2/5
  Iteration 5/5
  
  Iteration 2/5
  Iteration 5/5
  
  Iteration 2/5
  Iteration 5/5
  
  Iteration 2/5
  Iteration 5/5
  
  Iteration 4/5
  Iteration 5/5
  
  Iteration 4/5
  Iteration 5/5
  
  Iteration 4/10
  Iteration 9/10
  Iteration 10/10
  
  Iteration 1/10
  Iteration 3/10
  Iteration 8/10
  Iteration 10/10
  
  Iteration 1/3
  Iteration 3/3
  
  IRT Study
    Model:          2PL 
    Items:          20 
    Sample sizes:   100, 250, 500 
    Missing data:  MCAR (rate = 0.2)
  Ignoring unknown labels:
  * colour : "Parameter"
  * linetype : "Parameter"
  IRT Simulation Summary
    Model:       1PL 
    Iterations:  10 
    Seed:        42 
  
  Item Parameter Criteria:
   sample_size item param true_value         bias empirical_se        mse
           100    1     b         -2 -0.048729636    0.1428494 0.02073993
           100    2     b          0 -0.014232766    0.1666065 0.02518451
           100    3     b          2  0.003588876    0.1718792 0.02660108
        rmse coverage  mcse_bias   mcse_mse n_converged
   0.1440136      0.9 0.04517294 0.01101117          10
   0.1586963      0.9 0.05268559 0.01622127          10
   0.1630984      1.0 0.05435296 0.00813754          10
  
  Theta Recovery:
   sample_size  mean_cor     sd_cor mean_rmse   sd_rmse n_converged
           100 0.8872163 0.05253613 0.3297522 0.1072288          10
  [ FAIL 1 | WARN 7 | SKIP 3 | PASS 1488 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • Precomputed vignette data missing. Run data-raw/precompute_vignettes.R (3):
    'test-vignette_data.R:6:3', 'test-vignette_data.R:20:3',
    'test-vignette_data.R:34:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-grm_integration.R:389:3'): print methods work for GRM pipeline objects ──
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─testthat::expect_output(print(res)) at test-grm_integration.R:389:3
    2.   └─testthat:::quasi_capture(...)
    3.     └─testthat (local) .capture(...)
    4.       └─testthat::capture_output_lines(code, print, width = width)
    5.         └─testthat:::eval_with_output(code, print = print, width = width)
    6.           └─withr::with_output_sink(path, withVisible(code))
    7.             └─withr:::set_output_sink(file = new, append = append, split = split)
    8.               └─withr:::output_sink(file = file, append = append, split = split)
    9.                 └─base::sink(file = file, append = append, type = "output", split = split)
   10.                   └─base::file(file, if (append) "a" else "w")
  
  [ FAIL 1 | WARN 7 | SKIP 3 | PASS 1488 ]
  Error:
  ! Test failures.
  Execution halted