Running ‘testthat.R’ [11s/11s]
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(writeAlizer)
  > 
  > test_check("writeAlizer")
  i Downloaded model artifact:
  * File: mismatch.rda
  * Cache: /tmp/RtmpcXfTOG/fileebd44554252fe/R/writeAlizer
    (Artifacts are downloaded only the first time you use a model.)
    Tip: clear the cache with wa_cache_clear() if needed.
  Cleared cache: /tmp/RtmpcXfTOG/fileebd4413fd35fd/R/writeAlizer
  Cleared cache: /tmp/RtmpcXfTOG/fileebd44733fcdd9/R/writeAlizer
  * knitr
  * rmarkdown
  install.packages(c("knitr", "rmarkdown"))
  x Missing required packages:
  * knitr
  * rmarkdown
  * thispkgdoesnotexist123
  * anotherFakePkg
  install.packages(c("knitr", "rmarkdown", "thispkgdoesnotexist123", "anotherFakePkg"))
  x Missing required packages:
  * knitr
  * rmarkdown
  install.packages(c("knitr", "rmarkdown"))
  [ FAIL 4 | WARN 0 | SKIP 13 | PASS 383 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • Loader returned no fits under current test environment; registry + mock_dir
    setup validated. (1): 'test-preprocess-and-download.R:151:5'
  • On CRAN (11): 'test-download-snapshots.R:2:3', 'test-download.R:48:3',
    'test-download.R:72:3', 'test-download.R:90:3', 'test-file-utilities.R:2:3',
    'test-file-utilities.R:14:3', 'test-file-utilities.R:26:3',
    'test-file-utilities.R:39:3', 'test-import-validation.R:2:3',
    'test-import-validation.R:30:3', 'test-integration-predict_quality.R:234:3'
  • empty test (1):
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-model-deps.R:50:5'): model_deps() does not flag installed packages as missing ──
  Expected `res <- writeAlizer::model_deps()` to throw a message.
  Backtrace:
      ▆
   1. ├─testthat::capture_output(...) at test-model-deps.R:49:3
   2. │ └─testthat::capture_output_lines(code, print, width = width)
   3. │   └─testthat:::eval_with_output(code, print = print, width = width)
   4. │     ├─withr::with_output_sink(path, withVisible(code))
   5. │     │ └─base::force(code)
   6. │     └─base::withVisible(code)
   7. └─testthat::expect_message(res <- writeAlizer::model_deps(), regexp = "All required packages are installed:") at test-model-deps.R:50:5
  ── Failure ('test-model-deps.R:73:5'): model_deps() is quick, emits cli alerts, and returns a named list ──
  Expected `any(grepl("All required packages are installed:", msg))` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  Backtrace:
      ▆
   1. ├─testthat::capture_output(...) at test-model-deps.R:64:3
   2. │ └─testthat::capture_output_lines(code, print, width = width)
   3. │   └─testthat:::eval_with_output(code, print = print, width = width)
   4. │     ├─withr::with_output_sink(path, withVisible(code))
   5. │     │ └─base::force(code)
   6. │     └─base::withVisible(code)
   7. └─testthat::expect_true(...) at test-model-deps.R:73:5
  ── Failure ('test-model-deps.R:90:5'): model_deps() prints missing list and install command when something is missing ──
  Expected `any(...)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  Backtrace:
      ▆
   1. ├─testthat::capture_output(...) at test-model-deps.R:82:3
   2. │ └─testthat::capture_output_lines(code, print, width = width)
   3. │   └─testthat:::eval_with_output(code, print = print, width = width)
   4. │     ├─withr::with_output_sink(path, withVisible(code))
   5. │     │ └─base::force(code)
   6. │     └─base::withVisible(code)
   7. └─testthat::expect_true(...) at test-model-deps.R:90:5
  ── Failure ('test-model-deps.R:120:5'): internal install_model_deps() forwards to model_deps() ──
  Expected `any(grepl("All required packages are installed:", msg))` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  Backtrace:
      ▆
   1. ├─testthat::capture_output(...) at test-model-deps.R:114:3
   2. │ └─testthat::capture_output_lines(code, print, width = width)
   3. │   └─testthat:::eval_with_output(code, print = print, width = width)
   4. │     ├─withr::with_output_sink(path, withVisible(code))
   5. │     │ └─base::force(code)
   6. │     └─base::withVisible(code)
   7. └─testthat::expect_true(...) at test-model-deps.R:120:5
  
  [ FAIL 4 | WARN 0 | SKIP 13 | PASS 383 ]
  Error:
  ! Test failures.
  Execution halted