Running ‘testthat.R’ [10s/12s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(modelenv)
  > 
  > test_check("modelenv")
  Saving _problems/test-set_pred-230.R
  [ FAIL 1 | WARN 2 | SKIP 37 | PASS 29 ]
  
  ══ Skipped tests (37) ══════════════════════════════════════════════════════════
  • On CRAN (37): 'test-check.R:1:1', 'test-check.R:12:1',
    'test-set_dependency.R:46:1', 'test-set_dependency.R:65:1',
    'test-set_dependency.R:91:1', 'test-set_dependency.R:111:1',
    'test-set_dependency.R:132:1', 'test-set_encoding.R:77:1',
    'test-set_encoding.R:106:1', 'test-set_encoding.R:142:1',
    'test-set_encoding.R:162:1', 'test-set_encoding.R:250:1',
    'test-set_fit.R:34:1', 'test-set_fit.R:65:1', 'test-set_fit.R:94:1',
    'test-set_fit.R:130:1', 'test-set_fit.R:150:1', 'test-set_fit.R:389:1',
    'test-set_model_arg.R:30:1', 'test-set_model_arg.R:51:1',
    'test-set_model_arg.R:71:1', 'test-set_model_arg.R:103:1',
    'test-set_model_arg.R:138:1', 'test-set_model_arg.R:176:1',
    'test-set_model_engine.R:21:1', 'test-set_model_engine.R:32:1',
    'test-set_model_engine.R:49:1', 'test-set_model_engine.R:74:1',
    'test-set_model_mode.R:23:1', 'test-set_model_mode.R:38:1',
    'test-set_new_model.R:1:1', 'test-set_new_model.R:73:1',
    'test-set_pred.R:45:1', 'test-set_pred.R:80:1', 'test-set_pred.R:122:1',
    'test-set_pred.R:291:1', 'test-set_pred.R:318:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-set_pred.R:217:3'): set_pred() errors with wrong `value` argument ──
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-set_pred.R:217:3
   2.   └─testthat:::expect_snapshot_(...)
   3.     ├─testthat:::with_is_snapshotting(...)
   4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
   6.         └─evaluate:::watchout(...)
   7.           └─evaluate:::local_persistent_sink_connection(debug, frame)
   8.             └─base::file("", "w+b")
  
  [ FAIL 1 | WARN 2 | SKIP 37 | PASS 29 ]
  Error:
  ! Test failures.
  Execution halted